| D O S _ S W A P M P F D R E L A Y ( )
| | | | | SOURCE: qdev_autodocs.txt 1.163 (12/09/2014) English AMIGA - DOS_#?
----------------------------------------------------------------------------
NAME
dos_swapmpfdrelay() - Allows to switch message ports
in FH.
SYNOPSIS
omp = dos_swapmpfdrelay(fd, mp);
struct MsgPort *dos_swapmpfdrelay(
LONG, struct MsgPort *);
FUNCTION
This function should be used when there is a need to
eliminate FDR soft-interrupt that will be generated
whenever file related function gets called on given
FH.
INPUTS
fd - FileHandle obtained with 'Open()' targetted at
FDR possibly.
mp - Message port that should be attached or NULL.
RETURNS
Returns previous message port on success or NULL on
failure.
BASES
None.
NOTES
After calling 'dos_swapmpfdrelay(fd, NULL);' your FH
will use global device message port. This also means
that some packets(ACTION_DISK_INFO, ACTION_WAIT_CHAR,
ACTION_TIMER_PACKET and ACTION_SCREEN_MODE) will not
work anymore!
Restoring prev. message port before calling 'Close()'
is not mandatory in case of FDR related swap.
SEE ALSO
dos_getfmfdrelay(), dos_freefmfdrelay()
EXAMPLE
None.
BUGS
None known.
----------------------------------------------------------------------------
| |
| |