函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\quota\dquot.c Create Date:2022-07-29 11:08:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Call callback for every active dquot on given filesystem

函数原型:int dquot_scan_active(struct super_block *sb, int (*fn)(struct dquot *dquot, unsigned long priv), unsigned long priv)

返回类型:int

参数:

类型参数名称
struct super_block *sb
int (*fn
unsigned longpriv
584  struct dquot * dquot, * old_dquot = NULL
585  ret等于0
587  WARN_ON_ONCE(!In all implementations count != 0 means locked )
589  加自旋锁
591  如果非st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from则继续下一循环
593  如果 superblock this applies to 不等于sb则继续下一循环
596  atomic_inc( & Use count )
597  自旋锁解锁
598  Put reference to dquot
599  old_dquot等于dquot
605  End of list functions needing dq_list_lock
606  如果st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from
607  ret等于fn(dquot, priv)
608  如果ret小于0则转到:out
611  加自旋锁
615  自旋锁解锁
616  out :
617  Put reference to dquot
618  返回:ret