2005-04-16 15:20:36 -07:00
|
|
|
/*
|
|
|
|
* linux/fs/proc/proc_misc.c
|
|
|
|
*
|
|
|
|
* linux/fs/proc/array.c
|
|
|
|
* Copyright (C) 1992 by Linus Torvalds
|
|
|
|
* based on ideas by Darren Senn
|
|
|
|
*
|
|
|
|
* This used to be the part of array.c. See the rest of history and credits
|
|
|
|
* there. I took this into a separate file and switched the thing to generic
|
|
|
|
* proc_file_inode_operations, leaving in array.c only per-process stuff.
|
|
|
|
* Inumbers allocation made dynamic (via create_proc_entry()). AV, May 1999.
|
|
|
|
*
|
|
|
|
* Changes:
|
|
|
|
* Fulton Green : Encapsulated position metric calculations.
|
|
|
|
* <kernel@FultonGreen.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
#include <linux/errno.h>
|
|
|
|
#include <linux/time.h>
|
|
|
|
#include <linux/kernel.h>
|
|
|
|
#include <linux/kernel_stat.h>
|
2006-01-14 13:20:38 -08:00
|
|
|
#include <linux/fs.h>
|
2005-04-16 15:20:36 -07:00
|
|
|
#include <linux/tty.h>
|
|
|
|
#include <linux/string.h>
|
|
|
|
#include <linux/mman.h>
|
2008-09-02 14:35:53 -07:00
|
|
|
#include <linux/quicklist.h>
|
2005-04-16 15:20:36 -07:00
|
|
|
#include <linux/proc_fs.h>
|
|
|
|
#include <linux/ioport.h>
|
|
|
|
#include <linux/mm.h>
|
|
|
|
#include <linux/mmzone.h>
|
|
|
|
#include <linux/pagemap.h>
|
2008-08-19 20:50:12 -07:00
|
|
|
#include <linux/irq.h>
|
2008-02-06 01:36:35 -08:00
|
|
|
#include <linux/interrupt.h>
|
2005-04-16 15:20:36 -07:00
|
|
|
#include <linux/swap.h>
|
|
|
|
#include <linux/slab.h>
|
2008-03-04 11:23:50 +01:00
|
|
|
#include <linux/genhd.h>
|
2005-04-16 15:20:36 -07:00
|
|
|
#include <linux/smp.h>
|
|
|
|
#include <linux/signal.h>
|
|
|
|
#include <linux/module.h>
|
|
|
|
#include <linux/init.h>
|
|
|
|
#include <linux/seq_file.h>
|
|
|
|
#include <linux/times.h>
|
|
|
|
#include <linux/profile.h>
|
2006-12-08 02:41:14 -08:00
|
|
|
#include <linux/utsname.h>
|
2005-04-16 15:20:36 -07:00
|
|
|
#include <linux/blkdev.h>
|
|
|
|
#include <linux/hugetlb.h>
|
|
|
|
#include <linux/jiffies.h>
|
|
|
|
#include <linux/vmalloc.h>
|
2005-06-25 14:58:21 -07:00
|
|
|
#include <linux/crash_dump.h>
|
2006-12-08 02:37:58 -08:00
|
|
|
#include <linux/pid_namespace.h>
|
2008-02-04 22:29:05 -08:00
|
|
|
#include <linux/bootmem.h>
|
2005-04-16 15:20:36 -07:00
|
|
|
#include <asm/uaccess.h>
|
|
|
|
#include <asm/pgtable.h>
|
|
|
|
#include <asm/io.h>
|
|
|
|
#include <asm/tlb.h>
|
|
|
|
#include <asm/div64.h>
|
|
|
|
#include "internal.h"
|
|
|
|
|
|
|
|
void __init proc_misc_init(void)
|
|
|
|
{
|
|
|
|
proc_symlink("mounts", NULL, "self/mounts");
|
|
|
|
|
|
|
|
/* And now for trickier ones */
|
2005-06-25 14:58:21 -07:00
|
|
|
#ifdef CONFIG_PROC_VMCORE
|
2008-04-29 01:01:37 -07:00
|
|
|
proc_vmcore = proc_create("vmcore", S_IRUSR, NULL, &proc_vmcore_operations);
|
2005-06-25 14:58:21 -07:00
|
|
|
#endif
|
2005-04-16 15:20:36 -07:00
|
|
|
}
|