Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
generic.c File Reference
#include <linux/errno.h>
#include <linux/time.h>
#include <linux/proc_fs.h>
#include <linux/stat.h>
#include <linux/mm.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/mount.h>
#include <linux/init.h>
#include <linux/idr.h>
#include <linux/namei.h>
#include <linux/bitops.h>
#include <linux/spinlock.h>
#include <linux/completion.h>
#include <asm/uaccess.h>
#include "internal.h"

Go to the source code of this file.

Macros

#define PROC_BLOCK_SIZE   (PAGE_SIZE - 1024)
 
#define PROC_DYNAMIC_FIRST   0xF0000000U
 

Functions

 DEFINE_SPINLOCK (proc_subdir_lock)
 
struct dentryproc_lookup_de (struct proc_dir_entry *de, struct inode *dir, struct dentry *dentry)
 
struct dentryproc_lookup (struct inode *dir, struct dentry *dentry, unsigned int flags)
 
int proc_readdir_de (struct proc_dir_entry *de, struct file *filp, void *dirent, filldir_t filldir)
 
int proc_readdir (struct file *filp, void *dirent, filldir_t filldir)
 
struct proc_dir_entryproc_symlink (const char *name, struct proc_dir_entry *parent, const char *dest)
 
 EXPORT_SYMBOL (proc_symlink)
 
struct proc_dir_entryproc_mkdir_mode (const char *name, umode_t mode, struct proc_dir_entry *parent)
 
 EXPORT_SYMBOL (proc_mkdir_mode)
 
struct proc_dir_entryproc_net_mkdir (struct net *net, const char *name, struct proc_dir_entry *parent)
 
 EXPORT_SYMBOL_GPL (proc_net_mkdir)
 
struct proc_dir_entryproc_mkdir (const char *name, struct proc_dir_entry *parent)
 
 EXPORT_SYMBOL (proc_mkdir)
 
struct proc_dir_entrycreate_proc_entry (const char *name, umode_t mode, struct proc_dir_entry *parent)
 
 EXPORT_SYMBOL (create_proc_entry)
 
struct proc_dir_entryproc_create_data (const char *name, umode_t mode, struct proc_dir_entry *parent, const struct file_operations *proc_fops, void *data)
 
 EXPORT_SYMBOL (proc_create_data)
 
void pde_put (struct proc_dir_entry *pde)
 
void remove_proc_entry (const char *name, struct proc_dir_entry *parent)
 
 EXPORT_SYMBOL (remove_proc_entry)
 

Macro Definition Documentation

#define PROC_BLOCK_SIZE   (PAGE_SIZE - 1024)

Definition at line 39 of file generic.c.

#define PROC_DYNAMIC_FIRST   0xF0000000U

Definition at line 347 of file generic.c.

Function Documentation

struct proc_dir_entry* create_proc_entry ( const char name,
umode_t  mode,
struct proc_dir_entry parent 
)
read

Definition at line 701 of file generic.c.

DEFINE_SPINLOCK ( proc_subdir_lock  )
EXPORT_SYMBOL ( proc_symlink  )
EXPORT_SYMBOL ( proc_mkdir_mode  )
EXPORT_SYMBOL ( proc_mkdir  )
EXPORT_SYMBOL ( create_proc_entry  )
EXPORT_SYMBOL ( proc_create_data  )
EXPORT_SYMBOL ( remove_proc_entry  )
EXPORT_SYMBOL_GPL ( proc_net_mkdir  )
void pde_put ( struct proc_dir_entry pde)

Definition at line 774 of file generic.c.

struct proc_dir_entry* proc_create_data ( const char name,
umode_t  mode,
struct proc_dir_entry parent,
const struct file_operations proc_fops,
void data 
)
read

Definition at line 730 of file generic.c.

struct dentry* proc_lookup ( struct inode dir,
struct dentry dentry,
unsigned int  flags 
)
read

Definition at line 448 of file generic.c.

struct dentry* proc_lookup_de ( struct proc_dir_entry de,
struct inode dir,
struct dentry dentry 
)
read

Definition at line 417 of file generic.c.

struct proc_dir_entry* proc_mkdir ( const char name,
struct proc_dir_entry parent 
)
read

Definition at line 694 of file generic.c.

struct proc_dir_entry* proc_mkdir_mode ( const char name,
umode_t  mode,
struct proc_dir_entry parent 
)
read

Definition at line 661 of file generic.c.

struct proc_dir_entry* proc_net_mkdir ( struct net net,
const char name,
struct proc_dir_entry parent 
)
read

Definition at line 677 of file generic.c.

int proc_readdir ( struct file filp,
void dirent,
filldir_t  filldir 
)

Definition at line 528 of file generic.c.

int proc_readdir_de ( struct proc_dir_entry de,
struct file filp,
void dirent,
filldir_t  filldir 
)

Definition at line 463 of file generic.c.

struct proc_dir_entry* proc_symlink ( const char name,
struct proc_dir_entry parent,
const char dest 
)
read

Definition at line 635 of file generic.c.

void remove_proc_entry ( const char name,
struct proc_dir_entry parent 
)

Definition at line 783 of file generic.c.