/src/sys/sys/ |
localcount.h | 1 /* $NetBSD: localcount.h,v 1.5 2017/11/17 09:26:36 ozaki-r Exp $ */ 36 #error <sys/localcount.h> is for kernel consumers only. 45 struct localcount { struct 51 void localcount_init(struct localcount *); 52 void localcount_drain(struct localcount *, struct kcondvar *, 54 void localcount_fini(struct localcount *); 55 void localcount_acquire(struct localcount *); 56 void localcount_release(struct localcount *, struct kcondvar *, 60 localcount_debug_refcnt(const struct localcount *);
|
module_hook.h | 36 #include <sys/localcount.h> 40 void module_hook_set(bool *, struct localcount *); 41 void module_hook_unset(bool *, struct localcount *); 42 bool module_hook_tryenter(bool *, struct localcount *); 43 void module_hook_exit(struct localcount *); 53 struct localcount lc; \
|
device_impl.h | 143 struct localcount *dv_localcount;/* reference count */
|
Makefile | 31 localcount.h localedef.h lock.h lockf.h lua.h lwp.h lwpctl.h \
|
/src/sys/kern/ |
subr_localcount.c | 35 * localcount(9) is a reference-counting scheme that involves no 40 * localcount(9) references may be held across sleeps, may be 50 #include <sys/localcount.h> 66 * Initialize a localcount object. Returns 0 on success, error 73 localcount_init(struct localcount *lc) 93 * The localcount object lc may be used only with localcount_fini 98 localcount_drain(struct localcount *lc, kcondvar_t *cv, kmutex_t *interlock) 127 "negatively referenced localcount: %p, %"PRId64, 139 * Finalize a localcount object, releasing any memory allocated 140 * for it. The localcount object must already have been drained [all...] |
kern_module_hook.c | 66 module_hook_set(bool *hooked, struct localcount *lc) 82 module_hook_unset(bool *hooked, struct localcount *lc) 88 /* Get exclusive with pserialize and localcount. */ 106 module_hook_tryenter(bool *hooked, struct localcount *lc) 121 module_hook_exit(struct localcount *lc)
|
subr_devsw.c | 89 #include <sys/localcount.h> 106 struct localcount *dr_lc; 492 struct localcount *lc; 558 struct localcount *lc; 737 bdevsw_lookup_acquire(dev_t dev, struct localcount **lcp) 777 bdevsw_release(const struct bdevsw *bdev, struct localcount *lc) 805 cdevsw_lookup_acquire(dev_t dev, struct localcount **lcp) 845 cdevsw_release(const struct cdevsw *cdev, struct localcount *lc) 1165 struct localcount *lc; 1401 struct localcount *lc [all...] |
subr_autoconf.c | 113 #include <sys/localcount.h>
|
/src/sys/netipsec/ |
keydb.h | 39 #include <sys/localcount.h> 72 struct localcount localcount; /* reference count */ member in struct:secashead 99 struct localcount localcount; /* reference count */ member in struct:secasvar
|
ipsec.h | 46 #include <sys/localcount.h> 70 struct localcount localcount; /* reference count */ member in struct:secpolicy
|
key.c | 73 #include <sys/localcount.h> 167 * - SP's lifetime is managed by localcount(9) 228 * - sah's lifetime is managed by localcount(9) 237 * - sav's lifetime is managed by localcount(9) 918 localcount_drain(&sp->localcount, &key_spd.cv_lc, &key_spd.lock); 1404 localcount_init(&sp->localcount); 1416 localcount_acquire(&sp->localcount); 1437 localcount_release(&sp->localcount, &key_spd.cv_lc, &key_spd.lock); 1446 localcount_init(&sav->localcount); 1463 localcount_acquire(&sav->localcount); [all...] |
/src/share/man/man9/ |
Makefile | 37 localcount.9 LWP_CACHE_CREDS.9 \
|