FreeBSD/sys/dev/hwpmc/hwpmc_mod.c
/*
 * remove an owner process record if all conditions are met.
 */
remove an owner process record if all conditions are met.
remove an owner process record if all conditions are met .
static void
pmc_maybe_remove_owner(struct pmc_owner *po)
{
	PMCDBG1(OWN,OMR,1, "maybe-remove-owner po=%p", po);
	if (LIST_EMPTY(&po->po_pmcs) &&
	    ((po->po_flags & PMC_PO_OWNS_LOGFILE) == 0)) {
		pmc_remove_owner(po);
		pmc_destroy_owner_descriptor(po);
	}
}
static void pmc_maybe_remove_owner ( struct pmc_owner * po ) { PMCDBG1 ( OWN , OMR , 1 , " " , po ) ; if ( LIST_EMPTY ( & po -> po_pmcs ) && ( ( po -> po_flags & PMC_PO_OWNS_LOGFILE ) == 0 ) ) { pmc_remove_owner ( po ) ; pmc_destroy_owner_descriptor ( po ) ; } }
remove an owner process record if all conditions are met.
remove an owner process record if all conditions are met .
/*
	 * Remove owner record if
	 * - this process does not own any PMCs
	 * - this process has not allocated a system-wide sampling buffer
	 */