Skip to content

Commit

Permalink
Rename all data structure with prefix cds_
Browse files Browse the repository at this point in the history
This is the third and last patch of the namespace refactoring.

The prefix cds_ stands for Concurrent Data Structure and is
use for queue, list, hlist and stack.

For RCU protected data strucutre, the prefix is also added but
the suffix _rcu is appended. This suffix indicate and RCU protection.

Signed-off-by: David Goulet <[email protected]>
Signed-off-by: Mathieu Desnoyers <[email protected]>
  • Loading branch information
David Goulet authored and compudj committed Nov 18, 2010
1 parent 06f22bd commit 16aa9ee
Show file tree
Hide file tree
Showing 31 changed files with 897 additions and 897 deletions.
18 changes: 9 additions & 9 deletions rculfqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,23 @@
* library wrappers to be used by non-LGPL compatible source code.
*/

void rcu_lfq_node_init(struct rcu_lfq_node *node)
void cds_lfq_node_init_rcu(struct cds_lfq_node_rcu *node)
{
_rcu_lfq_node_init(node);
_cds_lfq_node_init_rcu(node);
}

void rcu_lfq_init(struct rcu_lfq_queue *q)
void cds_lfq_init_rcu(struct cds_lfq_queue_rcu *q)
{
_rcu_lfq_init(q);
_cds_lfq_init_rcu(q);
}

void rcu_lfq_enqueue(struct rcu_lfq_queue *q, struct rcu_lfq_node *node)
void cds_lfq_enqueue_rcu(struct cds_lfq_queue_rcu *q, struct cds_lfq_node_rcu *node)
{
_rcu_lfq_enqueue(q, node);
_cds_lfq_enqueue_rcu(q, node);
}

struct rcu_lfq_node *
rcu_lfq_dequeue(struct rcu_lfq_queue *q, void (*release)(struct urcu_ref *))
struct cds_lfq_node_rcu *
cds_lfq_dequeue_rcu(struct cds_lfq_queue_rcu *q, void (*release)(struct urcu_ref *))
{
return _rcu_lfq_dequeue(q, release);
return _cds_lfq_dequeue_rcu(q, release);
}
16 changes: 8 additions & 8 deletions rculfstack.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,22 @@
*/


void rcu_lfs_node_init(struct rcu_lfs_node *node)
void cds_lfs_node_init_rcu(struct cds_lfs_node_rcu *node)
{
_rcu_lfs_node_init(node);
_cds_lfs_node_init_rcu(node);
}

void rcu_lfs_init(struct rcu_lfs_stack *s)
void cds_lfs_init_rcu(struct cds_lfs_stack_rcu *s)
{
_rcu_lfs_init(s);
_cds_lfs_init_rcu(s);
}

void rcu_lfs_push(struct rcu_lfs_stack *s, struct rcu_lfs_node *node)
void cds_lfs_push_rcu(struct cds_lfs_stack_rcu *s, struct cds_lfs_node_rcu *node)
{
_rcu_lfs_push(s, node);
_cds_lfs_push_rcu(s, node);
}

struct rcu_lfs_node *rcu_lfs_pop(struct rcu_lfs_stack *s)
struct cds_lfs_node_rcu *cds_lfs_pop_rcu(struct cds_lfs_stack_rcu *s)
{
return _rcu_lfs_pop(s);
return _cds_lfs_pop_rcu(s);
}
Loading

0 comments on commit 16aa9ee

Please sign in to comment.