- 追加された行はこの色です。
- 削除された行はこの色です。
*参照元 [#wdcee484]
#backlinks
*説明 [#ae664a94]
-パス: [[linux-4.4.1/]]
-FIXME: これは何?
--説明
**引数 [#ba3ff20a]
-struct scatterlist *sg
--
--[[linux-4.4.1/scatterlist]]
**返り値 [#pad19488]
-struct scatterlist *
--
**参考 [#sa3680c4]
*実装 [#o4692935]
/**
* sg_next - return the next scatterlist entry in a list
* @sg: The current sg entry
*
* Description:
* Usually the next entry will be @sg@ + 1, but if this sg element is part
* of a chained scatterlist, it could jump to the start of a new
* scatterlist array.
*
**/
struct scatterlist *sg_next(struct scatterlist *sg)
{
#ifdef CONFIG_DEBUG_SG
-
--[[linux-4.4.1/CONFIG_DEBUG_SG]]
BUG_ON(sg->sg_magic != SG_MAGIC);
#endif
if (sg_is_last(sg))
return NULL;
-
--[[linux-4.4.1/sg_is_last()]]
sg++;
if (unlikely(sg_is_chain(sg)))
sg = sg_chain_ptr(sg);
-
--[[linux-4.4.1/unlikely()]]
--[[linux-4.4.1/sg_is_chain()]]
--[[linux-4.4.1/sg_chain_ptr()]]
return sg;
}
EXPORT_SYMBOL(sg_next);
-
--[[linux-4.4.1/EXPORT_SYMBOL()]]
*コメント [#xae5f038]