| C T L _ D E V U N M O U N T ( )
| | | | | SOURCE: qdev_autodocs.txt 1.163 (12/09/2014) English AMIGA - CTL_#?
----------------------------------------------------------------------------
NAME
ctl_devunmount() - Allows to unmount dos handlers.
SYNOPSIS
res = ctl_devunmount(devpatt, flags, cbdata, cbcode);
LONG ctl_devunmount(UBYTE *, ULONG,
void *, void (*)(struct ctl_umn_cb *));
FUNCTION
This func. allows to unmount handlers or filesystems.
INPUTS
devpatt - One or more device name(s)(with or without
colon). Standard patterns can be used.
flags - Control flags. Currently only two flags are
being recognized: QDEV_CTL_DMT_FKEEPGOING
- this flag allows forcible unmounting, and
QDEV_CTL_DMT_FSIGCALLER - set a signal trap
so caller will eventually terminate on pkt.
reply.
cbdata - User data.
cbcode - Callback function.
RETURNS
Number of devices successfully unmounted.
BASES
SysBase, DOSBase
NOTES
While forcible unmouting is not always the best thing
to do it is generally considered relatively safe. You
may be surprised by that, but it really is. This is
because 'ctl_devunmount()' shields running handlers
from outside world by taking over their message ports
and by bringing processes down in a piecewise way.
SEE ALSO
EXAMPLE
None.
BUGS
None known.
----------------------------------------------------------------------------
| |
| |