scsi_allocate_command(9) centos man page | unix.com

Man Page: scsi_allocate_command

Operating Environment: centos

Section: 9

SCSI_ALLOCATE_COMMAN(9) 					  SCSI mid layer					   SCSI_ALLOCATE_COMMAN(9)

NAME
scsi_allocate_command - get a fully allocated SCSI command
SYNOPSIS
struct scsi_cmnd * scsi_allocate_command(gfp_t gfp_mask);
ARGUMENTS
gfp_mask allocation mask
DESCRIPTION
This function is for use outside of the normal host based pools. It allocates the relevant command and takes an additional reference on the pool it used. This function *must* be paired with scsi_free_command which also has the identical mask, otherwise the free pool counts will eventually go wrong and you'll trigger a bug. This function should *only* be used by drivers that need a static command allocation at start of day for internal functions.
AUTHORS
James Bottomley <James.Bottomley@hansenpartnership.com> Author. Rob Landley <rob@landley.net> Author.
COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 SCSI_ALLOCATE_COMMAN(9)
Related Man Pages
bio_alloc_bioset(9) - centos
blk_make_request(9) - centos
fc_remote_port_add(9) - centos
srp_reconnect_rport(9) - centos
fc_remote_port_add(9) - suse
Similar Topics in the Unix Linux Community
Is UNIX an open source OS ?
Set hard block limit for user using quota
How to increment version inside a file?
CentOS7 restoring file capabilities
CentOS 6 ran out of space, need to reclaim it