*参照元 [#db577074] #backlinks *説明 [#qe402607] -パス: [[linux-4.4.1/include/linux/scatterlist.h]] -FIXME: これは何? --説明 **引数 [#a20c4ca0] -struct scatterlist *sg -- --[[linux-4.4.1/scatterlist]] -struct page *page -- --[[linux-4.4.1/page]] -unsigned int len -- -unsigned int offset -- **返り値 [#w12f71a0] -なし **参考 [#r26f3114] *実装 [#t9267112] /** * sg_set_page - Set sg entry to point at given page * @sg: SG entry * @page: The page * @len: Length of data * @offset: Offset into page * * Description: * Use this function to set an sg entry pointing at a page, never assign * the page directly. We encode sg table information in the lower bits * of the page pointer. See sg_page() for looking up the page belonging * to an sg entry. * **/ static inline void sg_set_page(struct scatterlist *sg, struct page *page, unsigned int len, unsigned int offset) { sg_assign_page(sg, page); - --[[linux-4.4.1/sg_assign_page()]] sg->offset = offset; sg->length = len; } *コメント [#pf127874]