[Contents] [Index] [Help] [Retrace] [browse <] [Browse >]


NAME
    DeviceProc -- Return the process msgport of specific i/o handler

SYNOPSIS
    process = DeviceProc( name )
    D0                    D1

    struct msgport *deviceproc (strptr)

FUNCTION
    DeviceProc() returns the process identifier of the process which
    handles the device associated with the specified name. If no
    process handler can be found then the result is zero. If the name
    refers to an assign then a directory lock is returned in ioerr().
    This lock should not be UnLock()ed or Examine()ed (if you wish to do
    so, duplock() it first).

BUGS
    In V36, if you try to DeviceProc() something relative to an assign
    made with assignpath(), it will fail.  this is because there's no
    way to know when to unlock the lock.  If you're writing code for
    V36 or later, it is highly advised you use getdeviceproc() instead,
    or make your code conditional on V36 to use GetDeviceProc()/
    freedeviceproc().

SEE ALSO
    getdeviceproc(), freedeviceproc(), duplock(), unlock(), examine()