__IDE_ADD_SETTING
Section: (9)
Updated: 09 October 2005
Index
Return to Main Contents
NAME
__ide_add_setting - add an ide setting option
SYNOPSIS
"SYNOPSIS"
int __ide_add_setting (ide_drive_t * drive, const char * name, int rw, int read_ioctl, int write_ioctl, int data_type, int min, int max, int mul_factor, int div_factor, void * data, ide_procset_t * set, int auto_remove);
ARGUMENTS
- drive
-
drive to use
- name
-
setting name
- rw
-
true if the function is read write
- read_ioctl
-
function to call on read
- write_ioctl
-
function to call on write
- data_type
-
type of data
- min
-
range minimum
- max
-
range maximum
- mul_factor
-
multiplication scale
- div_factor
-
divison scale
- data
-
private data field
- set
-
setting
- auto_remove
-
setting auto removal flag
DESCRIPTION
Removes the setting named from the device if it is present.
The function takes the settings_lock to protect against
parallel changes. This function must not be called from IRQ
context. Returns 0 on success or -1 on failure.
BUGS
This code is seriously over-engineered. There is also
magic about how the driver specific features are setup. If
a driver is attached we assume the driver settings are auto
remove.
Index
- NAME
-
- SYNOPSIS
-
- ARGUMENTS
-
- DESCRIPTION
-
- BUGS
-
This document was created by
man2html,
using the manual pages.
Time: 00:01:52 GMT, October 09, 2005