.\" 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_WRITE_SETTING" "" "06 October 2005" "" "" .SH NAME ide_write_setting \- read an IDE setting .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int ide_write_setting (ide_drive_t * \fIdrive\fB, ide_settings_t * \fIsetting\fB, int \fIval\fB); \fR .SH "ARGUMENTS" .TP \fB\fIdrive\fB\fR drive to read from .TP \fB\fIsetting\fB\fR drive setting .TP \fB\fIval\fB\fR value .SH "DESCRIPTION" .PP Write a drive setting if it is possible. The caller must hold the ide_setting_sem when making this call. .SH "BUGS" .PP the data return and error are the same return value so an error -EINVAL and true return of the same value cannot be told apart .SH "FIXME" .PP This should be changed to enqueue a special request to the driver to change settings, and then wait on a sema for completion. The current scheme of polling is kludgy, though safe enough.