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

1234567891011>>

/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/include/linux/
H A Dkref.h2 * kref.h - library routines for handling generic reference counted objects
20 struct kref { struct
24 void kref_init(struct kref *kref);
25 void kref_get(struct kref *kref);
26 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
26 kref_get(&ns->kref);
31 extern void free_user_ns(struct kref *kref);
36 kref_put(&ns->kref, free_user_ns);
H A Dutsname.h36 #include <linux/kref.h>
41 struct kref kref; member in struct:uts_namespace
49 kref_get(&ns->kref);
54 extern void free_uts_ns(struct kref *kref);
58 kref_put(&ns->kref, free_uts_ns);
H A Dpid_namespace.h8 #include <linux/kref.h>
20 struct kref kref; member in struct:pid_namespace
41 kref_get(&ns->kref);
46 extern void free_pid_ns(struct kref *kref);
52 kref_put(&ns->kref, free_pid_ns);
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/lib/
H A Dkref.c2 * kref.c - library routines for handling generic reference counted objects
14 #include <linux/kref.h>
20 * @kref: object in question.
22 void kref_init(struct kref *kref) argument
24 atomic_set(&kref->refcount, 1);
30 * @kref: object.
32 void kref_get(struct kref *kref) argument
34 WARN_ON(!atomic_read(&kref
53 kref_put(struct kref *kref, void (*release)(struct kref *kref)) argument
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/ceph/
H A Dbuffer.h4 #include <linux/kref.h>
17 struct kref kref; member in struct:ceph_buffer
24 extern void ceph_buffer_release(struct kref *kref);
28 kref_get(&b->kref);
34 kref_put(&b->kref, ceph_buffer_release);
H A Dbuffer.c29 kref_init(&b->kref);
36 void ceph_buffer_release(struct kref *kref) argument
38 struct ceph_buffer *b = container_of(kref, struct ceph_buffer, kref);
H A Dmessenger.h4 #include <linux/kref.h>
84 struct kref kref; member in struct:ceph_msg
242 kref_get(&msg->kref);
245 extern void ceph_msg_last_put(struct kref *kref);
248 kref_put(&msg->kref, ceph_msg_last_put);
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/powerpc/platforms/cell/spufs/
H A Dgang.c36 kref_init(&gang->kref);
46 static void destroy_spu_gang(struct kref *kref) argument
49 gang = container_of(kref, struct spu_gang, kref);
56 kref_get(&gang->kref);
62 return kref_put(&gang->kref, &destroy_spu_gang);
H A Dcontext.c51 kref_init(&ctx->kref);
82 void destroy_spu_context(struct kref *kref) argument
85 ctx = container_of(kref, struct spu_context, kref);
103 kref_get(&ctx->kref);
109 return kref_put(&ctx->kref, &destroy_spu_context);
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/kernel/
H A Dutsname.c24 kref_init(&uts_ns->kref);
69 void free_uts_ns(struct kref *kref) argument
73 ns = container_of(kref, struct uts_namespace, kref);
H A Duser_namespace.c33 kref_init(&ns->kref);
77 void free_user_ns(struct kref *kref) argument
80 container_of(kref, struct user_namespace, kref);
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/include/net/caif/
H A Dcfsrvl.h12 #include <linux/kref.h>
20 void (*release)(struct kref *);
22 struct kref ref;
25 void cfsrvl_release(struct kref *kref);
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/
H A Dsr.h21 #include <linux/kref.h>
46 * the refs on this kref to decide when to release them */
47 struct kref kref; member in struct:scsi_cd
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/powerpc/platforms/cell/
H A Dspu_notify.c54 struct kref *prof_info_kref,
55 void (* prof_info_release) (struct kref *kref))
53 spu_set_profile_private_kref(struct spu_context *ctx, struct kref *prof_info_kref, void (* prof_info_release) (struct kref *kref)) argument
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/mips/include/asm/
H A Dclock.h4 #include <linux/kref.h>
31 struct kref kref; member in struct:clk
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/infiniband/hw/cxgb3/
H A Diwch_cm.h38 #include <linux/kref.h>
58 ep, atomic_read(&((ep)->kref.refcount))); \
59 WARN_ON(atomic_read(&((ep)->kref.refcount)) < 1); \
60 kref_put(&((ep)->kref), __free_ep); \
65 ep, atomic_read(&((ep)->kref.refcount))); \
66 kref_get(&((ep)->kref)); \
159 struct kref kref; member in struct:iwch_ep_common
225 void __free_ep(struct kref *kref);
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/staging/go7007/
H A Ds2250-loader.c29 struct kref kref; member in struct:device_extension_s
41 #define to_s2250loader_dev_common(d) container_of(d, device_extension_t, kref)
42 static void s2250loader_delete(struct kref *kref) argument
44 pdevice_extension_t s = to_s2250loader_dev_common(kref);
98 kref_init(&(s->kref));
135 kref_put(&(s->kref), s2250loader_delete);
148 kref_put(&(s->kref), s2250loader_delete);
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/gpu/drm/ttm/
H A Dttm_object.c65 struct kref refcount;
94 * @kref: Ref count.
111 struct kref kref; member in struct:ttm_ref_object
124 static void ttm_object_file_destroy(struct kref *kref) argument
127 container_of(kref, struct ttm_object_file, refcount);
181 static void ttm_release_base(struct kref *kref) argument
184 container_of(kref, struc
309 ttm_ref_object_release(struct kref *kref) argument
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/misc/ibmasm/
H A Dibmasm.h34 #include <linux/kref.h>
96 struct kref kref; member in struct:command
99 #define to_command(c) container_of(c, struct command, kref)
101 void ibmasm_free_command(struct kref *kref);
108 kref_put(&cmd->kref, ibmasm_free_command);
114 kref_get(&cmd->kref);
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/char/
H A Dhvc_console.h29 #include <linux/kref.h>
64 struct kref kref; /* ref count & hvc_struct lifetime */ member in struct:hvc_struct
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/kernel/trace/
H A Dtrace_workqueue.c13 #include <linux/kref.h>
21 struct kref kref; member in struct:cpu_workqueue_stats
45 static void cpu_workqueue_stat_free(struct kref *kref) argument
47 kfree(container_of(kref, struct cpu_workqueue_stats, kref));
110 kref_init(&cws->kref);
133 kref_put(&node->kref, cpu_workqueue_stat_free);
155 kref_get(&ret->kref);
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/usb/core/
H A Dfile.c65 struct kref kref; member in struct:usb_class
84 kref_get(&usb_class->kref);
94 kref_init(&usb_class->kref);
109 static void release_usb_class(struct kref *kref) argument
120 kref_put(&usb_class->kref, release_usb_class);
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/security/apparmor/include/
H A Dpolicy.h20 #include <linux/kref.h>
77 struct kref count;
168 void aa_free_namespace_kref(struct kref *kref);
210 void aa_free_profile_kref(struct kref *kref);
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/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;

Completed in 119 milliseconds

1234567891011>>