Linux Kernel
3.7.1
|
Data Fields | |
struct tcw * | tcw |
struct tcw * | intrg_tcw |
int | num_tidaws |
int | max_tidaws |
int | intrg_num_tidaws |
int | intrg_max_tidaws |
struct itcw - incremental tcw helper data type
This structure serves as a handle for the incremental construction of a tcw and associated tccb, tsb, data tidaw-list plus an optional interrogate tcw and associated data. The data structures are contained inside a single contiguous buffer provided by the user.
The itcw construction functions take care of overall data integrity:
Restrictions apply to the itcws created with these construction functions:
Example: struct itcw *itcw; void *buffer; size_t size;
size = itcw_calc_size(1, 2, 0); buffer = kmalloc(size, GFP_KERNEL | GFP_DMA); if (!buffer) return -ENOMEM; itcw = itcw_init(buffer, size, ITCW_OP_READ, 1, 2, 0); if (IS_ERR(itcw)) return PTR_ER(itcw); itcw_add_dcw(itcw, 0x2, 0, NULL, 0, 72); itcw_add_tidaw(itcw, 0, 0x30000, 20); itcw_add_tidaw(itcw, 0, 0x40000, 52); itcw_finalize(itcw);