kernels/linux-2.4.0/drivers/block/cciss.c
/* 
 * Frees a command block that was previously allocated with cmd_alloc(). 
 */
Frees a command block that was previously allocated with cmd_alloc().
Frees a command block that was previously allocated with cmd_alloc () .
static void cmd_free(ctlr_info_t *h, CommandList_struct *c)
{
	int i;
	if( h == NULL)
	{ 
		kfree(c->err_info);
		kfree(c);	
	} else 
	{
		i = c - h->cmd_pool;
		clear_bit(i%32, h->cmd_pool_bits+(i/32));
                h->nr_frees++;
        }
}
static void cmd_free ( ctlr_info_t * h , CommandList_struct * c ) { int i ; if ( h == NULL ) { kfree ( c -> err_info ) ; kfree ( c ) ; } else { i = c - h -> cmd_pool ; clear_bit ( i % 32 , h -> cmd_pool_bits + ( i / 32 ) ) ; h -> nr_frees ++ ; } }
Frees a command block that was previously allocated with cmd_alloc().
Frees a command block that was previously allocated with cmd_alloc () .