522 SE_NOUNLOAD | SE_ARGC | SE_32RVAL1,
523 acctctl
524 };
525
526 static struct modlsys modlsys = {
527 &mod_syscallops,
528 "acctctl system call",
529 &ac_sysent
530 };
531
532 #ifdef _SYSCALL32_IMPL
533 static struct modlsys modlsys32 = {
534 &mod_syscallops32,
535 "32-bit acctctl system call",
536 &ac_sysent
537 };
538 #endif
539
540 static struct modlinkage modlinkage = {
541 MODREV_1,
542 &modlsys,
543 #ifdef _SYSCALL32_IMPL
544 &modlsys32,
545 #endif
546 NULL
547 };
548
549 /* ARGSUSED */
550 static void *
551 exacct_zone_init(zoneid_t zoneid)
552 {
553 struct exacct_globals *acg;
554
555 acg = kmem_zalloc(sizeof (*acg), KM_SLEEP);
556 mutex_enter(&exacct_globals_list_lock);
557 list_insert_tail(&exacct_globals_list, acg);
558 mutex_exit(&exacct_globals_list_lock);
559 return (acg);
560 }
561
562 static void
563 exacct_free_info(ac_info_t *info)
564 {
565 mutex_enter(&info->ac_lock);
566 if (info->ac_vnode) {
|
522 SE_NOUNLOAD | SE_ARGC | SE_32RVAL1,
523 acctctl
524 };
525
526 static struct modlsys modlsys = {
527 &mod_syscallops,
528 "acctctl system call",
529 &ac_sysent
530 };
531
532 #ifdef _SYSCALL32_IMPL
533 static struct modlsys modlsys32 = {
534 &mod_syscallops32,
535 "32-bit acctctl system call",
536 &ac_sysent
537 };
538 #endif
539
540 static struct modlinkage modlinkage = {
541 MODREV_1,
542 { &modlsys,
543 #ifdef _SYSCALL32_IMPL
544 &modlsys32,
545 #endif
546 NULL
547 }
548 };
549
550 /* ARGSUSED */
551 static void *
552 exacct_zone_init(zoneid_t zoneid)
553 {
554 struct exacct_globals *acg;
555
556 acg = kmem_zalloc(sizeof (*acg), KM_SLEEP);
557 mutex_enter(&exacct_globals_list_lock);
558 list_insert_tail(&exacct_globals_list, acg);
559 mutex_exit(&exacct_globals_list_lock);
560 return (acg);
561 }
562
563 static void
564 exacct_free_info(ac_info_t *info)
565 {
566 mutex_enter(&info->ac_lock);
567 if (info->ac_vnode) {
|