2
.\" Copyright (c) 2005, 4Front Technologies 2005\&.
3
.TH ossddk_disable_device 9ossddk "12 Sep 2005" "SunOS 5.10" "OSS DDK Services"
5
ossddk_disable_device \- Disables the device if possible prior unloading the driver
9
#include <sys/soundcard.h>
11
#include <sys/ossddk/ossddk.h>
14
\fBint\fR ossddk_disable_device(\fBoss_device_t *\fIosdev\fP);
18
Open Sound System specific (OSS 4.0 DDK)\&.
33
Drivers should call \fIossddk_disable_device\fR function in the beginning of their
34
detach routine. This function checks if the driver can be safely unloaded and prevents
35
OSS from accessing the driver any more.
38
This function returns a negative value (-errno) if the device cannot be disabled at
39
this moment. In this case the driver should refuse to detach. Value of 0 means that
40
the device was successfully disabled and the driver can proceed the detach operation.
44
\fIWriting Sound Device Drivers with OSS DDK\fR
45
\fIOpen Sound System Programmer's Guide\fR