/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
#include <c2/audit_kernel.h>
#include <c2/audit_record.h>
/*
* au_buff_t and token_t are equivalent (see audit_record.h). Don't
* confuse this token_t with the one that is defined for userspace
* in the same header file.
*/
/*
* Function: au_get_buff
* args:
*/
struct au_buff *
au_get_buff(void)
{
/*
* If asynchronous (interrupt) thread, then we can't sleep
* (the tad ERRJMP flag is set at the start of async processing).
*/
/* return to top of stack & report an error */
}
} else {
}
/* Never gets here when buffer == NULL */
return (buffer);
}
/*
* Function: au_free_rec
* args:
* au_buff_t *buf; start of the record chain
*/
void
{
/*
* If asynchronous (interrupt) thread, schedule the release
* (the tad ERRJMP flag is set at the start of async processing).
*/
/* Discard async events via softcall. */
}
}
}
/*
* Backend routine to discard an async event. Invoked from softcall.
* (Note: the freeing of memory for the event can't be done safely in high
* interrupt context due to the chance of sleeping on an adaptive mutex.
* Hence the softcall.)
*/
void
{
}
/*
* Function: au_append_rec
* args:
* au_buff_t *rec; start of the record chain
* au_buff_t *buf; buffer to append
* int pack; AU_PACK/1 - pack data, AU_LINK/0 - link buffer
*/
int
{
if (!rec)
return (-1);
} else {
}
return (0);
}
/*
* Function: au_append_buf
* args:
* char *data; data buffer to append
* int len; size of data to append
* au_buff_t *buf; buffer to append to
*/
int
{
int new_len;
while (len > 0) {
return (-1);
}
}
return (0);
}
void
{
}