Scroll to navigation

__SCSI_GET_COMMAND(9) SCSI mid layer __SCSI_GET_COMMAND(9)

NAME

__scsi_get_command - Allocate a struct scsi_cmnd

SYNOPSIS

struct scsi_cmnd * __scsi_get_command(struct Scsi_Host * shost, gfp_t gfp_mask);

ARGUMENTS

shost

host to transmit command

gfp_mask

allocation mask

DESCRIPTION

allocate a struct scsi_cmd from host's slab, recycling from the host's free_list if necessary.

AUTHORS

James Bottomley <James.Bottomley@hansenpartnership.com>

Author.

Rob Landley <rob@landley.net>

Author.

COPYRIGHT

June 2023 Kernel Hackers Manual 3.10