projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "CDS API: removal of rcu_read lock/unlock dep, removal of call_rcu argument...
[userspace-rcu.git]
/
urcu
/
rculfqueue.h
diff --git
a/urcu/rculfqueue.h
b/urcu/rculfqueue.h
index 1582694e92abbcfc5bfc8104f2016fb480f41aff..e1d64f13d5229e251674919189c8f28d780c8d50 100644
(file)
--- a/
urcu/rculfqueue.h
+++ b/
urcu/rculfqueue.h
@@
-39,6
+39,8
@@
struct cds_lfq_node_rcu {
struct cds_lfq_queue_rcu {
struct cds_lfq_node_rcu *head, *tail;
struct cds_lfq_queue_rcu {
struct cds_lfq_node_rcu *head, *tail;
+ void (*queue_call_rcu)(struct rcu_head *head,
+ void (*func)(struct rcu_head *head));
};
#ifdef _LGPL_SOURCE
};
#ifdef _LGPL_SOURCE
@@
-78,7
+80,9
@@
struct cds_lfq_queue_rcu {
#else /* !_LGPL_SOURCE */
extern void cds_lfq_node_init_rcu(struct cds_lfq_node_rcu *node);
#else /* !_LGPL_SOURCE */
extern void cds_lfq_node_init_rcu(struct cds_lfq_node_rcu *node);
-extern void cds_lfq_init_rcu(struct cds_lfq_queue_rcu *q);
+extern void cds_lfq_init_rcu(struct cds_lfq_queue_rcu *q,
+ void queue_call_rcu(struct rcu_head *head,
+ void (*func)(struct rcu_head *head)));
/*
* The queue should be emptied before calling destroy.
*
/*
* The queue should be emptied before calling destroy.
*
@@
-87,13
+91,13
@@
extern void cds_lfq_init_rcu(struct cds_lfq_queue_rcu *q);
extern int cds_lfq_destroy_rcu(struct cds_lfq_queue_rcu *q);
/*
extern int cds_lfq_destroy_rcu(struct cds_lfq_queue_rcu *q);
/*
- *
Acts as a RCU reader
.
+ *
Should be called under rcu read lock critical section
.
*/
extern void cds_lfq_enqueue_rcu(struct cds_lfq_queue_rcu *q,
struct cds_lfq_node_rcu *node);
/*
*/
extern void cds_lfq_enqueue_rcu(struct cds_lfq_queue_rcu *q,
struct cds_lfq_node_rcu *node);
/*
- *
Acts as a RCU reader
.
+ *
Should be called under rcu read lock critical section
.
*
* The caller must wait for a grace period to pass before freeing the returned
* node or modifying the cds_lfq_node_rcu structure.
*
* The caller must wait for a grace period to pass before freeing the returned
* node or modifying the cds_lfq_node_rcu structure.
This page took
0.02508 seconds
and
4
git commands to generate.