git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3d8d996
)
list.h: add list_is_singular()
author
Masami Hiramatsu
<mhiramat@redhat.com>
Mon, 28 Apr 2008 09:14:27 +0000
(
02:14
-0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Mon, 28 Apr 2008 15:58:32 +0000
(08:58 -0700)
Add list_is_singular() to check a list has just one entry.
list_is_singular() is useful to check whether a list_head which have been
temporarily allocated for listing objects can be released or not.
Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/list.h
patch
|
blob
|
history
diff --cc
include/linux/list.h
Simple merge