Lines Matching defs:n_iov_allocated

32         int (*map)(const char *field, const char **p, struct iovec **iov, size_t *n_iov_allocated, unsigned *n_iov);
35 static int map_simple_field(const char *field, const char **p, struct iovec **iov, size_t *n_iov_allocated, unsigned *n_iov) {
61 if (!GREEDY_REALLOC(*iov, *n_iov_allocated, *n_iov + 1))
74 static int map_string_field_internal(const char *field, const char **p, struct iovec **iov, size_t *n_iov_allocated, unsigned *n_iov, bool filter_printable) {
140 if (!GREEDY_REALLOC(*iov, *n_iov_allocated, *n_iov + 1))
153 static int map_string_field(const char *field, const char **p, struct iovec **iov, size_t *n_iov_allocated, unsigned *n_iov) {
154 return map_string_field_internal(field, p, iov, n_iov_allocated, n_iov, false);
157 static int map_string_field_printable(const char *field, const char **p, struct iovec **iov, size_t *n_iov_allocated, unsigned *n_iov) {
158 return map_string_field_internal(field, p, iov, n_iov_allocated, n_iov, true);
161 static int map_generic_field(const char *prefix, const char **p, struct iovec **iov, size_t *n_iov_allocated, unsigned *n_iov) {
205 r = map_simple_field(c, &e, iov, n_iov_allocated, n_iov);
265 size_t *n_iov_allocated,
272 assert(n_iov_allocated);
304 return map_all_fields(c, map_fields_userspace, "AUDIT_FIELD_", false, iov, n_iov_allocated, n_iov);
314 r = m->map(m->journal_field, &v, iov, n_iov_allocated, n_iov);
326 r = map_generic_field(prefix, &p, iov, n_iov_allocated, n_iov);
339 size_t n_iov_allocated = 0;
379 n_iov_allocated = N_IOVEC_META_FIELDS + 7;
380 iov = new(struct iovec, n_iov_allocated);
409 map_all_fields(p, map_fields_kernel, "_AUDIT_FIELD_", true, &iov, &n_iov_allocated, &n_iov);
411 if (!GREEDY_REALLOC(iov, n_iov_allocated, n_iov + N_IOVEC_META_FIELDS)) {
416 server_dispatch_message(s, iov, n_iov, n_iov_allocated, NULL, NULL, NULL, 0, NULL, LOG_NOTICE, 0);