Lines Matching refs:buf
77 * au_buff_t *buf; start of the record chain
80 au_free_rec(au_buff_t *buf)
93 softcall(audit_async_discard_backend, buf);
96 while (buf != NULL) {
97 next = buf->next_buf;
98 kmem_cache_free(au_buf_cache, buf);
99 buf = next;
119 * au_buff_t *buf; buffer to append
123 au_append_rec(au_buff_t *rec, au_buff_t *buf, int pack)
130 if (((int)(rec->len + buf->len) <= AU_BUFSIZE) && pack) {
131 bcopy(buf->buf, (char *)(rec->buf + rec->len),
132 (uint_t)buf->len);
133 rec->len += buf->len;
134 rec->next_buf = buf->next_buf;
135 kmem_cache_free(au_buf_cache, buf);
137 rec->next_buf = buf;
147 * au_buff_t *buf; buffer to append to
150 au_append_buf(const char *data, int len, au_buff_t *buf)
155 while (buf->next_buf != NULL)
156 buf = buf->next_buf;
158 new_len = (uint_t)(buf->len + len) > AU_BUFSIZE ?
159 AU_BUFSIZE - buf->len : len;
160 bcopy(data, (buf->buf + buf->len), (uint_t)new_len);
161 buf->len += (uchar_t)new_len;
169 buf->next_buf = new_buf;
170 buf = new_buf;
172 bcopy(data, buf->buf, (uint_t)new_len);
173 buf->len = (uchar_t)new_len;