1MPT_REGISTER(9)              Message-based devices             MPT_REGISTER(9)
2
3
4

NAME

6       mpt_register - Register protocol-specific main callback handler.
7

SYNOPSIS

9       u8 mpt_register(MPT_CALLBACK cbfunc, MPT_DRIVER_CLASS dclass,
10                       char * func_name);
11

ARGUMENTS

13       cbfunc
14           callback function pointer
15
16       dclass
17           Protocol driver's class (MPT_DRIVER_CLASS enum value)
18
19       func_name
20           call function's name
21

DESCRIPTION

23       This routine is called by a protocol-specific driver (SCSI host, LAN,
24       SCSI target) to register its reply callback routine. Each
25       protocol-specific driver must do this before it will be able to use any
26       IOC resources, such as obtaining request frames.
27

NOTES

29       The SCSI protocol driver currently calls this routine thrice in order
30       to register separate callbacks; one for “normal” SCSI IO; one for
31       MptScsiTaskMgmt requests; one for Scan/DV requests.
32
33       Returns u8 valued “handle” in the range (and S.O.D. order)
34       {N,...,7,6,5,...,1} if successful. A return value of
35       MPT_MAX_PROTOCOL_DRIVERS (including zero!) should be considered an
36       error by the caller.
37
39Kernel Hackers Manual 3.10         June 2019                   MPT_REGISTER(9)
Impressum