linux-2.6.33/wait_on_buffer()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#i75bb7f2]
#backlinks
*説明 [#sbc59f8e]
-パス: [[linux-2.6.33/include/linux/buffer_head.h]]
-FIXME: これは何?
--説明
**引数 [#xd5538d6]
-struct buffer_head *bh
--[[linux-2.6.33/buffer_head]]
**返り値 [#yb849da9]
-なし
**参考 [#j299f4c0]
*実装 [#udb3f205]
/*
* Calling wait_on_buffer() for a zero-ref buffer is ill...
* __wait_on_buffer() just to trip a debug check. Becau...
* functions is bloaty.
*/
static inline void wait_on_buffer(struct buffer_head *bh)
{
might_sleep();
-
--[[linux-2.6.33/might_sleep()]]
if (buffer_locked(bh) || atomic_read(&bh->b_count) == 0)
-
--[[linux-2.6.33/buffer_locked()]]
-
--[[linux-2.6.33/atomic_read()]]
__wait_on_buffer(bh);
-
--[[linux-2.6.33/__wait_on_buffer()]]
}
*コメント [#i71cdee3]
終了行:
*参照元 [#i75bb7f2]
#backlinks
*説明 [#sbc59f8e]
-パス: [[linux-2.6.33/include/linux/buffer_head.h]]
-FIXME: これは何?
--説明
**引数 [#xd5538d6]
-struct buffer_head *bh
--[[linux-2.6.33/buffer_head]]
**返り値 [#yb849da9]
-なし
**参考 [#j299f4c0]
*実装 [#udb3f205]
/*
* Calling wait_on_buffer() for a zero-ref buffer is ill...
* __wait_on_buffer() just to trip a debug check. Becau...
* functions is bloaty.
*/
static inline void wait_on_buffer(struct buffer_head *bh)
{
might_sleep();
-
--[[linux-2.6.33/might_sleep()]]
if (buffer_locked(bh) || atomic_read(&bh->b_count) == 0)
-
--[[linux-2.6.33/buffer_locked()]]
-
--[[linux-2.6.33/atomic_read()]]
__wait_on_buffer(bh);
-
--[[linux-2.6.33/__wait_on_buffer()]]
}
*コメント [#i71cdee3]
ページ名: