From owner-p4-projects Sun Apr 21 20:44:46 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 73CA537B419; Sun, 21 Apr 2002 20:44:40 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id B463C37B417 for ; Sun, 21 Apr 2002 20:44:39 -0700 (PDT) Received: (from perforce@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3M3idv70737 for perforce@freebsd.org; Sun, 21 Apr 2002 20:44:39 -0700 (PDT) (envelope-from arr@freebsd.org) Date: Sun, 21 Apr 2002 20:44:39 -0700 (PDT) Message-Id: <200204220344.g3M3idv70737@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to arr@freebsd.org using -f From: "Andrew R. Reiter" Subject: PERFORCE change 10118 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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