1SCSI_ALLOCATE_COMMAN(9)         SCSI mid layer         SCSI_ALLOCATE_COMMAN(9)
2
3
4

NAME

6       scsi_allocate_command - get a fully allocated SCSI command
7

SYNOPSIS

9       struct scsi_cmnd * scsi_allocate_command(gfp_t gfp_mask);
10

ARGUMENTS

12       gfp_mask
13           allocation mask
14

DESCRIPTION

16       This function is for use outside of the normal host based pools. It
17       allocates the relevant command and takes an additional reference on the
18       pool it used. This function *must* be paired with scsi_free_command
19       which also has the identical mask, otherwise the free pool counts will
20       eventually go wrong and you´ll trigger a bug.
21
22       This function should *only* be used by drivers that need a static
23       command allocation at start of day for internal functions.
24

AUTHORS

26       James Bottomley <James.Bottomley@hansenpartnership.com>
27           Author.
28
29       Rob Landley <rob@landley.net>
30           Author.
31
33Kernel Hackers Manual 2.6.         June 2019           SCSI_ALLOCATE_COMMAN(9)
Impressum