mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-30 19:06:14 +00:00
seq_file: Add helpers for iteration over a hlist
Some places in kernel need to iterate over a hlist in seq_file, so provide some common helpers. Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b1109bf085
commit
66655de6d1
2 changed files with 67 additions and 3 deletions
|
@ -135,4 +135,15 @@ extern struct list_head *seq_list_start_head(struct list_head *head,
|
|||
extern struct list_head *seq_list_next(void *v, struct list_head *head,
|
||||
loff_t *ppos);
|
||||
|
||||
/*
|
||||
* Helpers for iteration over hlist_head-s in seq_files
|
||||
*/
|
||||
|
||||
extern struct hlist_node *seq_hlist_start(struct hlist_head *head,
|
||||
loff_t pos);
|
||||
extern struct hlist_node *seq_hlist_start_head(struct hlist_head *head,
|
||||
loff_t pos);
|
||||
extern struct hlist_node *seq_hlist_next(void *v, struct hlist_head *head,
|
||||
loff_t *ppos);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue