Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\buffer.c Create Date:2022-07-28 20:14:07
Last Modify:2020-03-18 10:38:29 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sync is designed to support O_SYNC io

Proto:static int osync_buffers_list(spinlock_t *lock, struct list_head *list)

Type:int

Parameter:

TypeParameterName
spinlock_t *lock
struct list_head *list
518  err = 0
520  spin_lock(lock)
521  repeat :
523  bh = BH_ENTRY(p)
524  If buffer_locked(bh) Then
525  get_bh(bh)
526  spin_unlock(lock)
527  wait_on_buffer(bh)
528  If Not 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. Then err = -EIO
530  brelse(bh)
531  spin_lock(lock)
532  Go to repeat
535  spin_unlock(lock)
536  Return err
Caller
NameDescribe
fsync_buffers_list