array.c (4aef2ec9022b217f74d0f4c9b84081f07cc223d9) array.c (9d78edeaec759f997c303f286ecd39daee166f2a)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * linux/fs/proc/array.c
4 *
5 * Copyright (C) 1992 by Linus Torvalds
6 * based on ideas by Darren Senn
7 *
8 * Fixes:

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

723 read_unlock(&tasklist_lock);
724 return pid;
725}
726
727static int children_seq_show(struct seq_file *seq, void *v)
728{
729 struct inode *inode = file_inode(seq->file);
730
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * linux/fs/proc/array.c
4 *
5 * Copyright (C) 1992 by Linus Torvalds
6 * based on ideas by Darren Senn
7 *
8 * Fixes:

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

723 read_unlock(&tasklist_lock);
724 return pid;
725}
726
727static int children_seq_show(struct seq_file *seq, void *v)
728{
729 struct inode *inode = file_inode(seq->file);
730
731 seq_printf(seq, "%d ", pid_nr_ns(v, proc_pid_ns(inode)));
731 seq_printf(seq, "%d ", pid_nr_ns(v, proc_pid_ns(inode->i_sb)));
732 return 0;
733}
734
735static void *children_seq_start(struct seq_file *seq, loff_t *pos)
736{
737 return get_children_pid(file_inode(seq->file), NULL, *pos);
738}
739

--- 35 unchanged lines hidden ---
732 return 0;
733}
734
735static void *children_seq_start(struct seq_file *seq, loff_t *pos)
736{
737 return get_children_pid(file_inode(seq->file), NULL, *pos);
738}
739

--- 35 unchanged lines hidden ---