// SPDX-License-Identifier: GPL-2.0 #include <linux/cache.h> #include <linux/sched.h> #include <linux/slab.h> #include <linux/pid_namespace.h> #include "internal.h" /* * /proc/thread_self: */ static const char *proc_thread_self_get_link(struct dentry *dentry, struct inode *inode, struct delayed_call *done) { … } static const struct inode_operations proc_thread_self_inode_operations = …; static unsigned thread_self_inum __ro_after_init; int proc_setup_thread_self(struct super_block *s) { … } void __init proc_thread_self_init(void) { … }