mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08:00
0097875bd4
/proc/thread-self is derived from /proc/self. /proc/thread-self points to the directory in proc containing information about the current thread. This funtionality has been missing for a long time, and is tricky to implement in userspace as gettid() is not exported by glibc. More importantly this allows fixing defects in /proc/mounts and /proc/net where in a threaded application today they wind up being empty files when only the initial pthread has exited, causing problems for other threads. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
33 lines
759 B
Makefile
33 lines
759 B
Makefile
#
|
|
# Makefile for the Linux proc filesystem routines.
|
|
#
|
|
|
|
obj-y += proc.o
|
|
|
|
proc-y := nommu.o task_nommu.o
|
|
proc-$(CONFIG_MMU) := task_mmu.o
|
|
|
|
proc-y += inode.o root.o base.o generic.o array.o \
|
|
fd.o
|
|
proc-$(CONFIG_TTY) += proc_tty.o
|
|
proc-y += cmdline.o
|
|
proc-y += consoles.o
|
|
proc-y += cpuinfo.o
|
|
proc-y += devices.o
|
|
proc-y += interrupts.o
|
|
proc-y += loadavg.o
|
|
proc-y += meminfo.o
|
|
proc-y += stat.o
|
|
proc-y += uptime.o
|
|
proc-y += version.o
|
|
proc-y += softirqs.o
|
|
proc-y += namespaces.o
|
|
proc-y += self.o
|
|
proc-y += thread_self.o
|
|
proc-$(CONFIG_PROC_SYSCTL) += proc_sysctl.o
|
|
proc-$(CONFIG_NET) += proc_net.o
|
|
proc-$(CONFIG_PROC_KCORE) += kcore.o
|
|
proc-$(CONFIG_PROC_VMCORE) += vmcore.o
|
|
proc-$(CONFIG_PRINTK) += kmsg.o
|
|
proc-$(CONFIG_PROC_PAGE_MONITOR) += page.o
|