Home
last modified time | relevance | path

Searched refs:localcount (Results 1 – 13 of 13) sorted by relevance

/netbsd-src/sys/sys/
H A Dlocalcount.h36 #error <sys/localcount.h> is for kernel consumers only.
45 struct localcount { struct
51 void localcount_init(struct localcount *); argument
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 *);
H A Dmodule_hook.h40 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; \
H A Ddevice_impl.h143 struct localcount *dv_localcount;/* reference count */
H A DMakefile31 localcount.h localedef.h lock.h lockf.h lua.h lwp.h lwpctl.h \
/netbsd-src/sys/kern/
H A Dsubr_localcount.c35 * 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) in localcount_init()
93 * The localcount object lc may be used only with localcount_fini
98 localcount_drain(struct localcount *lc, kcondvar_t *cv, kmutex_t *interlock) in localcount_drain()
127 "negatively referenced localcount: %p, %"PRId64, in localcount_drain()
139 * Finalize a localcount object, releasing any memory allocated
140 * for it. The localcount objec
[all...]
H A Dkern_module_hook.c66 module_hook_set(bool *hooked, struct localcount *lc) in module_hook_set()
82 module_hook_unset(bool *hooked, struct localcount *lc) in module_hook_unset()
106 module_hook_tryenter(bool *hooked, struct localcount *lc) in module_hook_tryenter()
121 module_hook_exit(struct localcount *lc) in module_hook_exit()
H A Dsubr_devsw.c89 #include <sys/localcount.h>
106 struct localcount *dr_lc;
492 struct localcount *lc; in bdevsw_attach()
558 struct localcount *lc; in cdevsw_attach()
737 bdevsw_lookup_acquire(dev_t dev, struct localcount **lcp) in bdevsw_lookup_acquire()
777 bdevsw_release(const struct bdevsw *bdev, struct localcount *lc) in bdevsw_release()
805 cdevsw_lookup_acquire(dev_t dev, struct localcount **lcp) in cdevsw_lookup_acquire()
845 cdevsw_release(const struct cdevsw *cdev, struct localcount *lc) in cdevsw_release()
1165 struct localcount *lc; in bdev_open()
1401 struct localcount *l in cdev_open()
[all...]
/netbsd-src/sys/netipsec/
H A Dkeydb.h72 struct localcount localcount; /* reference count */ member
99 struct localcount localcount; /* reference count */ member
H A Dipsec.h70 struct localcount localcount; /* reference count */ member
H A Dkey.c73 #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); in key_unlink_sp()
1404 localcount_init(&sp->localcount); in key_init_sp()
1416 localcount_acquire(&sp->localcount); in key_sp_ref()
1437 localcount_release(&sp->localcount, &key_spd.cv_lc, &key_spd.lock); in key_sp_unref()
1446 localcount_init(&sav->localcount); in key_init_sav()
1463 localcount_acquire(&sav->localcount); in key_sa_ref()
[all...]
/netbsd-src/doc/
H A DBRANCHES1034 Description: Implement localcount reference counting as proposed by
1035 riastradh@ - supersedes abandonded pgoyette-localcount
1044 Branch: pgoyette-localcount
1045 Description: Implement localcount reference counting as proposed by
1050 Base Tag: pgoyette-localcount-base
/netbsd-src/share/man/man9/
H A DMakefile37 localcount.9 LWP_CACHE_CREDS.9 \
/netbsd-src/usr.sbin/makemandb/
H A Dnostem.txt2230 localcount