1. sgt:sg表头。 2. pages:指向页指针数组的指针。 3. n_pages:页数组中的页数。 4. offset:从第一页的起始位置偏移的量。 5. size:分配的内存大小。 6. gfp_mask:用于get_free_page的标志位。 通过调用sg_alloc_table_from_pages函数,并传入相应的参数,可以从页数组中分配和初始化一个sg表,以便进行...
函数名称:sg_alloc_table_from_pages - Allocate and initialize an sg table from* an array of pages*@sgt: The sg table header to use*@pages: Pointer to an array of page pointers*@n_pages: Number of pages in the pages array*@offset: Offset from start of the first page 函数原型:int ...