Searched refs:kref (Results 1 - 25 of 133) sorted by relevance

123456

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/linux/
H A Dkref.h2 * kref.c - library routines for handling generic reference counted objects
23 struct kref { struct
27 void kref_init(struct kref *kref);
28 void kref_get(struct kref *kref);
29 int kref_put(struct kref *kref, void (*release) (struct kref *kref));
[all...]
H A Duser_namespace.h4 #include <linux/kref.h>
13 struct kref kref; member in struct:user_namespace
25 kref_get(&ns->kref);
31 extern void free_user_ns(struct kref *kref);
36 kref_put(&ns->kref, free_user_ns);
H A Dpid_namespace.h9 #include <linux/kref.h>
19 struct kref kref; member in struct:pid_namespace
29 kref_get(&ns->kref);
33 extern void free_pid_ns(struct kref *kref);
37 kref_put(&ns->kref, free_pid_ns);
H A Dutsname.h36 #include <linux/kref.h>
41 struct kref kref; member in struct:uts_namespace
48 kref_get(&ns->kref);
53 extern void free_uts_ns(struct kref *kref);
57 kref_put(&ns->kref, free_uts_ns);
H A Dipc.h54 #include <linux/kref.h>
75 struct kref kref; member in struct:ipc_namespace
107 extern void free_ipc_ns(struct kref *kref);
114 kref_get(&ns->kref);
122 kref_put(&ns->kref, free_ipc_ns);
H A Dklist.h17 #include <linux/kref.h>
35 struct kref n_ref;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/lib/
H A Dkref.c2 * kref.c - library routines for handling generic reference counted objects
14 #include <linux/kref.h>
19 * @kref: object in question.
21 void kref_init(struct kref *kref) argument
23 atomic_set(&kref->refcount,1);
29 * @kref: object.
31 void kref_get(struct kref *kref) argument
33 WARN_ON(!atomic_read(&kref
52 kref_put(struct kref *kref, void (*release)(struct kref *kref)) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/kernel/
H A Dutsname.c29 kref_init(&ns->kref);
56 void free_uts_ns(struct kref *kref) argument
60 ns = container_of(kref, struct uts_namespace, kref);
H A Duser_namespace.c14 .kref = {
39 kref_init(&ns->kref);
79 void free_user_ns(struct kref *kref) argument
83 ns = container_of(kref, struct user_namespace, kref);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/powerpc/platforms/cell/spufs/
H A Dgang.c36 kref_init(&gang->kref);
44 static void destroy_spu_gang(struct kref *kref) argument
47 gang = container_of(kref, struct spu_gang, kref);
54 kref_get(&gang->kref);
60 return kref_put(&gang->kref, &destroy_spu_gang);
H A Dcontext.c43 kref_init(&ctx->kref);
68 void destroy_spu_context(struct kref *kref) argument
71 ctx = container_of(kref, struct spu_context, kref);
84 kref_get(&ctx->kref);
90 return kref_put(&ctx->kref, &destroy_spu_context);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/scsi/
H A Dsr.h21 #include <linux/kref.h>
42 * the refs on this kref to decide when to release them */
43 struct kref kref; member in struct:scsi_cd
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/mac80211/
H A Dieee80211_rate.c104 kref_init(&ref->kref);
121 static void rate_control_release(struct kref *kref) argument
125 ctrl_ref = container_of(kref, struct rate_control_ref, kref);
133 kref_get(&ref->kref);
139 kref_put(&ref->kref, rate_control_release);
H A Dieee80211_key.h14 #include <linux/kref.h>
45 struct kref kref; member in struct:ieee80211_key
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/infiniband/hw/cxgb3/
H A Diwch_cm.h38 #include <linux/kref.h>
58 ep, atomic_read(&((ep)->kref.refcount))); \
59 kref_put(&((ep)->kref), __free_ep); \
64 ep, atomic_read(&((ep)->kref.refcount))); \
65 kref_get(&((ep)->kref)); \
156 struct kref kref; member in struct:iwch_ep_common
221 void __free_ep(struct kref *kref);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-sh/
H A Dclock.h4 #include <linux/kref.h>
28 struct kref kref; member in struct:clk
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/usb/core/
H A Dfile.c64 struct kref kref; member in struct:usb_class
73 kref_get(&usb_class->kref);
83 kref_init(&usb_class->kref);
96 static void release_usb_class(struct kref *kref) argument
107 kref_put(&usb_class->kref, release_usb_class);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/usb/host/
H A Dehci-mem.c66 static void qh_destroy (struct kref *kref) argument
68 struct ehci_qh *qh = container_of(kref, struct ehci_qh, kref);
92 kref_init(&qh->kref);
111 kref_get(&qh->kref);
117 kref_put(&qh->kref, qh_destroy);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/usb/
H A Dusb-skeleton.c20 #include <linux/kref.h>
61 struct kref kref; member in struct:usb_skel
64 #define to_skel_dev(d) container_of(d, struct usb_skel, kref)
68 static void skel_delete(struct kref *kref) argument
70 struct usb_skel *dev = to_skel_dev(kref);
104 kref_get(&dev->kref);
111 kref_put(&dev->kref, skel_delete);
137 kref_put(&dev->kref, skel_delet
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/macintosh/
H A Dwindfarm.h13 #include <linux/kref.h>
42 struct kref ref;
52 * the kref and wf_unregister_control will decrement it, thus the
91 struct kref ref;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/usb/misc/
H A Dusblcd.c45 struct kref kref; member in struct:usb_lcd
49 #define to_lcd_dev(d) container_of(d, struct usb_lcd, kref)
57 static void lcd_delete(struct kref *kref) argument
59 struct usb_lcd *dev = to_lcd_dev(kref);
92 kref_get(&dev->kref);
111 kref_put(&dev->kref, lcd_delete);
292 kref_init(&dev->kref);
357 kref_put(&dev->kref, lcd_delet
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/usb/mon/
H A Dusb_mon.h12 #include <linux/kref.h>
30 struct kref ref; /* Under mon_lock */
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/infiniband/core/
H A Duverbs.h42 #include <linux/kref.h>
73 struct kref ref;
83 struct kref ref;
94 struct kref ref;
151 void ib_uverbs_release_event_file(struct kref *ref);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/configfs/
H A Ditem.c44 static void config_item_release(struct kref *kref);
165 static void config_item_release(struct kref *kref) argument
167 config_item_cleanup(container_of(kref, struct config_item, ci_kref));
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/linux/nfsd/
H A Dstate.h41 #include <linux/kref.h>
195 struct kref so_ref;
220 struct kref fi_ref;
267 extern void nfs4_free_stateowner(struct kref *kref);

Completed in 135 milliseconds

123456