| D O S _ G E T F M F D R E L A Y ( )
| | | | | SOURCE: qdev_autodocs.txt 1.163 (12/09/2014) English AMIGA - DOS_#?
----------------------------------------------------------------------------
NAME
dos_getfmfdrelay() - Obtains an address of the master
fd relay structure.
SYNOPSIS
fm = dos_getfmfdrelay(name)
void *dos_getfmfdrelay(UBYTE *);
FUNCTION
This function allows low level ops to be performed
on fd relay.
INPUTS
name - DOS device name(with or without colon(':')).
RETURNS
Returns pointer to 'fm' or NULL.
BASES
DOSBase
NOTES
This function doesnt block whole relay, but increases
client count.
Always 'Forbid()'/'Permit()' protect before reading
anything from this structure.
SEE ALSO
dos_freefmfdrelay()
EXAMPLE
...
struct dos_fdr_main *fm;
struct dos_fdr_chan *fc;
if ((fm = dos_getfmfdrelay("MYRELAY:")))
{
Forbid();
QDEV_HLP_ITERATE(
&fm->fm_chanlist, struct dos_fdr_chan *, fc)
{
...
}
Permit();
dos_freefmfdrelay(fm);
}
BUGS
None known.
----------------------------------------------------------------------------
| |
| |