Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95601
b: refs/heads/master
c: 1da43e4
h: refs/heads/master
i:
  95599: 636641a
v: v3
  • Loading branch information
Tejun Heo authored and Greg Kroah-Hartman committed Apr 30, 2008
1 parent 21d2925 commit 43980bc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 40a2159abf3d0107bba359246554bd7d56f2171b
refs/heads/master: 1da43e4a9ee942c9c967dbe8839476571df0c3ed
8 changes: 8 additions & 0 deletions trunk/include/linux/klist.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ struct klist {
void (*put)(struct klist_node *);
};

#define KLIST_INIT(_name, _get, _put) \
{ .k_lock = __SPIN_LOCK_UNLOCKED(_name.k_lock), \
.k_list = LIST_HEAD_INIT(_name.k_list), \
.get = _get, \
.put = _put, }

#define DEFINE_KLIST(_name, _get, _put) \
struct klist _name = KLIST_INIT(_name, _get, _put)

extern void klist_init(struct klist * k, void (*get)(struct klist_node *),
void (*put)(struct klist_node *));
Expand Down

0 comments on commit 43980bc

Please sign in to comment.