Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
scsi_proc.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/proc_fs.h>
#include <linux/errno.h>
#include <linux/blkdev.h>
#include <linux/seq_file.h>
#include <linux/mutex.h>
#include <linux/gfp.h>
#include <asm/uaccess.h>
#include <scsi/scsi.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_transport.h>
#include "scsi_priv.h"
#include "scsi_logging.h"

Go to the source code of this file.

Macros

#define PROC_BLOCK_SIZE   (3*1024)
 

Functions

void scsi_proc_hostdir_add (struct scsi_host_template *sht)
 
void scsi_proc_hostdir_rm (struct scsi_host_template *sht)
 
void scsi_proc_host_add (struct Scsi_Host *shost)
 
void scsi_proc_host_rm (struct Scsi_Host *shost)
 
int __init scsi_init_procfs (void)
 
void scsi_exit_procfs (void)
 

Macro Definition Documentation

#define PROC_BLOCK_SIZE   (3*1024)

Definition at line 41 of file scsi_proc.c.

Function Documentation

void scsi_exit_procfs ( void  )

scsi_exit_procfs - Remove scsi/scsi and scsi from procfs

Definition at line 488 of file scsi_proc.c.

int __init scsi_init_procfs ( void  )

scsi_init_procfs - create scsi and scsi/scsi in procfs

Definition at line 465 of file scsi_proc.c.

void scsi_proc_host_add ( struct Scsi_Host shost)

scsi_proc_host_add - Add entry for this host to appropriate /proc dir : host to add

Definition at line 144 of file scsi_proc.c.

void scsi_proc_host_rm ( struct Scsi_Host shost)

scsi_proc_host_rm - remove this host's entry from /proc : which host

Definition at line 170 of file scsi_proc.c.

void scsi_proc_hostdir_add ( struct scsi_host_template sht)

scsi_proc_hostdir_add - Create directory in /proc for a scsi host : owner of this directory

Sets sht->proc_dir to the new directory.

Definition at line 107 of file scsi_proc.c.

void scsi_proc_hostdir_rm ( struct scsi_host_template sht)

scsi_proc_hostdir_rm - remove directory in /proc for a scsi host : owner of directory

Definition at line 126 of file scsi_proc.c.