函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\buffer.c Create Date:2022-07-29 10:45:08
Last Modify:2020-03-18 10:38:29 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:sync is designed to support O_SYNC io

函数原型:static int osync_buffers_list(spinlock_t *lock, struct list_head *list)

返回类型:int

参数:

类型参数名称
spinlock_t *lock
struct list_head *list
518  err等于0
520  加自旋锁
521  repeat :
523  bh等于BH_ENTRY(p)
524  如果buffer_locked(bh)则
525  get_bh(bh)
526  自旋锁解锁
527  wait_on_buffer(bh)
528  如果非Emit the buffer bitops functions. Note that there are also functions* of the form "mark_buffer_foo()". These are higher-level functions which* do something in addition to setting a b_state bit.err等于负EIO
530  brelse(bh)
531  加自旋锁
532  转到:repeat
535  自旋锁解锁
536  返回:err
调用者
名称描述
fsync_buffers_list