- 追加された行はこの色です。
- 削除された行はこの色です。
*参照元 [#k69155b5]
#backlinks
*説明 [#p5e91584]
-パス: [[linux-4.4.1/include/linux/scatterlist.h]]
-FIXME: これは何?
--説明
**引数 [#ocad4c71]
-
--
**返り値 [#n3da5daf]
-
--
**参考 [#f3fd2274]
*実装 [#s64e9c4c]
/**
* sg_assign_page - Assign a given page to an SG entry
* @sg: SG entry
* @page: The page
*
* Description:
* Assign page to sg entry. Also see sg_set_page(), the most commonly used
* variant.
*
**/
static inline void sg_assign_page(struct scatterlist *sg, struct page *page)
{
unsigned long page_link = sg->page_link & 0x3;
/*
* In order for the low bit stealing approach to work, pages
* must be aligned at a 32-bit boundary as a minimum.
*/
BUG_ON((unsigned long) page & 0x03);
-
--[[linux-4.4.1/BUG_ON()]]
#ifdef CONFIG_DEBUG_SG
-
--[[linux-4.4.1/CONFIG_DEBUG_SG]]
BUG_ON(sg->sg_magic != SG_MAGIC);
BUG_ON(sg_is_chain(sg));
-
--[[linux-4.4.1/sg_is_chain()]]
#endif
sg->page_link = page_link | (unsigned long) page;
}
*コメント [#hc09f8ae]