mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
seq_file: add RCU versions of new hlist/list iterators (v3)
Many usages of seq_file use RCU protected lists, so non RCU iterators will not work safely. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
35e2da46d2
commit
1cc523271e
3 changed files with 86 additions and 3 deletions
|
@ -140,10 +140,17 @@ extern struct list_head *seq_list_next(void *v, struct list_head *head,
|
|||
*/
|
||||
|
||||
extern struct hlist_node *seq_hlist_start(struct hlist_head *head,
|
||||
loff_t pos);
|
||||
loff_t pos);
|
||||
extern struct hlist_node *seq_hlist_start_head(struct hlist_head *head,
|
||||
loff_t pos);
|
||||
loff_t pos);
|
||||
extern struct hlist_node *seq_hlist_next(void *v, struct hlist_head *head,
|
||||
loff_t *ppos);
|
||||
loff_t *ppos);
|
||||
|
||||
extern struct hlist_node *seq_hlist_start_rcu(struct hlist_head *head,
|
||||
loff_t pos);
|
||||
extern struct hlist_node *seq_hlist_start_head_rcu(struct hlist_head *head,
|
||||
loff_t pos);
|
||||
extern struct hlist_node *seq_hlist_next_rcu(void *v,
|
||||
struct hlist_head *head,
|
||||
loff_t *ppos);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue