Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ide-proc.c File Reference
#include <linux/module.h>
#include <asm/uaccess.h>
#include <linux/errno.h>
#include <linux/proc_fs.h>
#include <linux/stat.h>
#include <linux/mm.h>
#include <linux/pci.h>
#include <linux/ctype.h>
#include <linux/ide.h>
#include <linux/seq_file.h>
#include <linux/slab.h>
#include <asm/io.h>

Go to the source code of this file.

: setting name

ide_find_setting - find a specific setting : setting table pointer

Scan's the setting table for a matching entry and returns this or NULL if no entry is found. The caller must hold the setting semaphore

#define MAX_LEN   30
struct file_operations ide_capacity_proc_fops
struct file_operations ide_geometry_proc_fops
 ide_devset_get (xfer_rate, current_speed)
 ide_devset_rw (current_speed, xfer_rate)
 ide_devset_rw_field (init_speed, init_speed)
 ide_devset_rw_flag (nice1, IDE_DFLAG_NICE1)
 ide_devset_rw_field (number, dn)
 EXPORT_SYMBOL_GPL (ide_capacity_proc_fops)
 EXPORT_SYMBOL (ide_geometry_proc_fops)
void ide_proc_register_driver (ide_drive_t *drive, struct ide_driver *driver)
 EXPORT_SYMBOL (ide_proc_register_driver)
void ide_proc_unregister_driver (ide_drive_t *drive, struct ide_driver *driver)
 EXPORT_SYMBOL (ide_proc_unregister_driver)
void ide_proc_port_register_devices (ide_hwif_t *hwif)
void ide_proc_unregister_device (ide_drive_t *drive)
void ide_proc_register_port (ide_hwif_t *hwif)
void ide_proc_unregister_port (ide_hwif_t *hwif)
void proc_ide_create (void)
void proc_ide_destroy (void)

Macro Definition Documentation

#define MAX_LEN   30

Definition at line 331 of file ide-proc.c.

Function Documentation

EXPORT_SYMBOL ( ide_geometry_proc_fops  )
EXPORT_SYMBOL ( ide_proc_register_driver  )
EXPORT_SYMBOL ( ide_proc_unregister_driver  )
EXPORT_SYMBOL_GPL ( ide_capacity_proc_fops  )
ide_devset_get ( xfer_rate  ,
ide_devset_rw ( current_speed  ,
ide_devset_rw_field ( init_speed  ,
ide_devset_rw_field ( number  ,
ide_devset_rw_flag ( nice1  ,
void ide_proc_port_register_devices ( ide_hwif_t hwif)

Definition at line 683 of file ide-proc.c.

void ide_proc_register_driver ( ide_drive_t drive,
struct ide_driver driver 

Definition at line 647 of file ide-proc.c.

void ide_proc_register_port ( ide_hwif_t hwif)

Definition at line 721 of file ide-proc.c.

void ide_proc_unregister_device ( ide_drive_t drive)

Definition at line 704 of file ide-proc.c.

void ide_proc_unregister_driver ( ide_drive_t drive,
struct ide_driver driver 

ide_proc_unregister_driver - remove driver specific data : drive : driver

Clean up the driver specific /proc files and IDE settings for a given drive.

Takes ide_setting_mtx.

Definition at line 669 of file ide-proc.c.

void ide_proc_unregister_port ( ide_hwif_t hwif)

Definition at line 733 of file ide-proc.c.

void proc_ide_create ( void  )

Definition at line 776 of file ide-proc.c.

void proc_ide_destroy ( void  )

Definition at line 786 of file ide-proc.c.

Variable Documentation

struct file_operations ide_capacity_proc_fops
Initial value:
= {
.owner = THIS_MODULE,
.open = ide_capacity_proc_open,
.read = seq_read,
.llseek = seq_lseek,
.release = single_release,

Definition at line 455 of file ide-proc.c.

struct file_operations ide_geometry_proc_fops
Initial value:
= {
.owner = THIS_MODULE,
.open = ide_geometry_proc_open,
.read = seq_read,
.llseek = seq_lseek,
.release = single_release,

Definition at line 480 of file ide-proc.c.