FreeBSD/sys/kern/kern_acct.c
/*
 * Disable currently in-progress accounting by closing the vnode, dropping
 * our reference to the credential, and clearing the vnode's flags.
 */
Disable currently in-progress accounting by closing the vnode, dropping
our reference to the credential, and clearing the vnode's flags.
Disable currently in - progress accounting by closing the vnode dropping our reference to the credential and clearing the vnode ' s flags .
static int
acct_disable(struct thread *td, int logging)
{
	int error;
	sx_assert(&acct_sx, SX_XLOCKED);
	error = vn_close(acct_vp, acct_flags, acct_cred, td);
	crfree(acct_cred);
	lim_free(acct_limit);
	acct_configured = 0;
	acct_vp = NULL;
	acct_cred = NULL;
	acct_flags = 0;
	if (logging)
		log(LOG_NOTICE, "Accounting disabled\n");
	return (error);
}
static int acct_disable ( struct thread * td , int logging ) { int error ; sx_assert ( & acct_sx , SX_XLOCKED ) ; error = vn_close ( acct_vp , acct_flags , acct_cred , td ) ; crfree ( acct_cred ) ; lim_free ( acct_limit ) ; acct_configured = 0 ; acct_vp = NULL ; acct_cred = NULL ; acct_flags = 0 ; if ( logging ) log ( LOG_NOTICE , " \n " ) ; return ( error ) ; }
Disable currently in-progress accounting by closing the vnode, dropping
 our reference to the credential, and clearing the vnode's flags.
Disable currently in - progress accounting by closing the vnode dropping our reference to the credential and clearing the vnode ' s flags .