SuSE 11.3 - man page for scsi_allocate_command (suse section 9)
|Linux & Unix Commands - Search Man Pages
SCSI_ALLOCATE_COMMAN(9) SCSI mid layer SCSI_ALLOCATE_COMMAN(9)
scsi_allocate_command - get a fully allocated SCSI command
struct scsi_cmnd * scsi_allocate_command(gfp_t gfp_mask);
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.
James Bottomley <James.Bottomley@hansenpartnership.com>
Rob Landley <firstname.lastname@example.org>
Kernel Hackers Manual 2.6. July 2010 SCSI_ALLOCATE_COMMAN(9)
All times are GMT -4. The time now is 10:45 AM.