Registers the current process as a coprocessor user.
#include <sys/coprocessor.h>
kerrno_t coprocessor_user_register ( int coprocessor_type, unsigned int * phandle )
Item | Description |
---|---|
coprocessor_type | Numeric value in the [0..63] range |
phandle | Pointer to an unsigned 32 bit integer where a handle identifying this process is returned. |
This kernel service allows a kernel extension to register the current process as a user of the coprocessor type passed as the first argument. When successful, the service sets up values in the process context that allow the current process to access coprocessors of the specified type in user mode.
This kernel service can be called in the process environment only.
When the call is successful, the kernel service returns a value of zero. Otherwise, a negative value is returned to indicate an error.
Possible errors are: