linux-4.4.1/__get_order()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#j9ad2e0c]
#backlinks
*説明 [#wc0e0a4f]
-パス: [[linux-4.4.1/include/asm-generic/getorder.h]]
-FIXME: これは何?
--説明
**引数 [#r8a64d2c]
-unsigned long size
--
**返り値 [#m07906ac]
-int
--
**参考 [#f93da6f9]
*実装 [#v75c48a2]
/*
* Runtime evaluation of get_order()
*/
static inline __attribute_const__
int __get_order(unsigned long size)
{
int order;
size--;
size >>= PAGE_SHIFT;
#if BITS_PER_LONG == 32
order = fls(size);
#else
order = fls64(size);
#endif
return order;
}
*コメント [#je2545a3]
終了行:
*参照元 [#j9ad2e0c]
#backlinks
*説明 [#wc0e0a4f]
-パス: [[linux-4.4.1/include/asm-generic/getorder.h]]
-FIXME: これは何?
--説明
**引数 [#r8a64d2c]
-unsigned long size
--
**返り値 [#m07906ac]
-int
--
**参考 [#f93da6f9]
*実装 [#v75c48a2]
/*
* Runtime evaluation of get_order()
*/
static inline __attribute_const__
int __get_order(unsigned long size)
{
int order;
size--;
size >>= PAGE_SHIFT;
#if BITS_PER_LONG == 32
order = fls(size);
#else
order = fls64(size);
#endif
return order;
}
*コメント [#je2545a3]
ページ名: