mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 11:11:27 +00:00
Add list_entry_in_list()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5017 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -174,6 +174,15 @@ static inline unsigned int queue_max_hw_sectors(struct request_queue *q)
|
||||
#define __list_for_each list_for_each
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Returns true if entry is in its list. Entry must be deleted from the
|
||||
* list by using list_del_init()!
|
||||
*/
|
||||
static inline bool list_entry_in_list(const struct list_head *entry)
|
||||
{
|
||||
return !list_empty(entry);
|
||||
}
|
||||
|
||||
#define SCST_INTERFACE_VERSION \
|
||||
SCST_VERSION_STRING "$Revision$" SCST_CONST_VERSION
|
||||
|
||||
|
||||
Reference in New Issue
Block a user