Date: Sun, 21 Apr 2002 20:44:39 -0700 (PDT) From: "Andrew R. Reiter" <arr@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 10118 for review Message-ID: <200204220344.g3M3idv70737@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=10118 Change 10118 by arr@arr_shibby on 2002/04/21 20:44:17 - Finish update from vm_zone to uma_zone. Affected files ... ... //depot/projects/trustedbsd/audit/sys/kern/kern_audit.c#22 edit ... //depot/projects/trustedbsd/audit/sys/sys/audit.h#13 edit Differences ... ==== //depot/projects/trustedbsd/audit/sys/kern/kern_audit.c#22 (text+ko) ==== @@ -103,11 +103,19 @@ } void +audit_uma_ctor(void *mem, int size) +{ + + bzero(mem, size); +} + +void audit_init(void) { uma_zone_t zone; - zone = uma_zinit("AUDIT", sizeof(audit_record_t), pool_size, 0, 4); + zone = uma_zcreate("AUDIT", &audit_uma_ctor, NULL, NULL, NULL, + UMA_ALIGN_PTR, 0); if (zone == NULL) panic("audit_init: unable to init audit record zone"); ==== //depot/projects/trustedbsd/audit/sys/sys/audit.h#13 (text+ko) ==== @@ -229,5 +229,6 @@ int audit_record_write(audit_record_t *, struct audit_info *, struct thread *); audit_record_t *audit_record_init(int, size_t, struct audit_info *); +void audit_uma_ctor(void *, int); #endif /* !_SYS_AUDIT_H_ */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204220344.g3M3idv70737>