ip6_flowlabel.c (0898782247ae533d1f4e47a06bc5d4870931b284) ip6_flowlabel.c (9d78edeaec759f997c303f286ecd39daee166f2a)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * ip6_flowlabel.c IPv6 flowlabel manager.
4 *
5 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
6 */
7
8#include <linux/capability.h>

--- 765 unchanged lines hidden (view full) ---

774 return pos ? NULL : fl;
775}
776
777static void *ip6fl_seq_start(struct seq_file *seq, loff_t *pos)
778 __acquires(RCU)
779{
780 struct ip6fl_iter_state *state = ip6fl_seq_private(seq);
781
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * ip6_flowlabel.c IPv6 flowlabel manager.
4 *
5 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
6 */
7
8#include <linux/capability.h>

--- 765 unchanged lines hidden (view full) ---

774 return pos ? NULL : fl;
775}
776
777static void *ip6fl_seq_start(struct seq_file *seq, loff_t *pos)
778 __acquires(RCU)
779{
780 struct ip6fl_iter_state *state = ip6fl_seq_private(seq);
781
782 state->pid_ns = proc_pid_ns(file_inode(seq->file));
782 state->pid_ns = proc_pid_ns(file_inode(seq->file)->i_sb);
783
784 rcu_read_lock_bh();
785 return *pos ? ip6fl_get_idx(seq, *pos - 1) : SEQ_START_TOKEN;
786}
787
788static void *ip6fl_seq_next(struct seq_file *seq, void *v, loff_t *pos)
789{
790 struct ip6_flowlabel *fl;

--- 91 unchanged lines hidden ---
783
784 rcu_read_lock_bh();
785 return *pos ? ip6fl_get_idx(seq, *pos - 1) : SEQ_START_TOKEN;
786}
787
788static void *ip6fl_seq_next(struct seq_file *seq, void *v, loff_t *pos)
789{
790 struct ip6_flowlabel *fl;

--- 91 unchanged lines hidden ---