X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=include%2Flinux%2Fseq_file.h;h=4e32edc8f506b89f13b0260200498b5cf87b490a;hb=0bc77381c1b1600e659eb7322c39d1753615722d;hp=2da29ac178fc25ccf01fca81552bf9f515e3c945;hpb=99b072bb38c9b398bc7c3fc8a0f30d0801f78750;p=deliverable%2Flinux.git diff --git a/include/linux/seq_file.h b/include/linux/seq_file.h index 2da29ac178fc..4e32edc8f506 100644 --- a/include/linux/seq_file.h +++ b/include/linux/seq_file.h @@ -173,4 +173,10 @@ extern struct hlist_node *seq_hlist_start_head_rcu(struct hlist_head *head, extern struct hlist_node *seq_hlist_next_rcu(void *v, struct hlist_head *head, loff_t *ppos); + +/* Helpers for iterating over per-cpu hlist_head-s in seq_files */ +extern struct hlist_node *seq_hlist_start_percpu(struct hlist_head __percpu *head, int *cpu, loff_t pos); + +extern struct hlist_node *seq_hlist_next_percpu(void *v, struct hlist_head __percpu *head, int *cpu, loff_t *pos); + #endif