.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "__IDE_ADD_SETTING" "9" "09 October 2005" "" ""
.SH NAME
__ide_add_setting \- add an ide setting option
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int __ide_add_setting (ide_drive_t * \fIdrive\fB, const char * \fIname\fB, int \fIrw\fB, int \fIread_ioctl\fB, int \fIwrite_ioctl\fB, int \fIdata_type\fB, int \fImin\fB, int \fImax\fB, int \fImul_factor\fB, int \fIdiv_factor\fB, void * \fIdata\fB, ide_procset_t * \fIset\fB, int \fIauto_remove\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIdrive\fB\fR
drive to use
.TP
\fB\fIname\fB\fR
setting name
.TP
\fB\fIrw\fB\fR
true if the function is read write
.TP
\fB\fIread_ioctl\fB\fR
function to call on read
.TP
\fB\fIwrite_ioctl\fB\fR
function to call on write
.TP
\fB\fIdata_type\fB\fR
type of data
.TP
\fB\fImin\fB\fR
range minimum
.TP
\fB\fImax\fB\fR
range maximum
.TP
\fB\fImul_factor\fB\fR
multiplication scale
.TP
\fB\fIdiv_factor\fB\fR
divison scale
.TP
\fB\fIdata\fB\fR
private data field
.TP
\fB\fIset\fB\fR
setting
.TP
\fB\fIauto_remove\fB\fR
setting auto removal flag
.SH "DESCRIPTION"
.PP
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.
.SH "BUGS"
.PP
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.