函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\quota.h Create Date:2022-07-27 06:44:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:qid_has_mapping - Report if a qid maps into a user namespace.*@ns: The user namespace to see if a value maps into.*@qid: The kernel internal quota identifier to test.

函数原型:static inline bool qid_has_mapping(struct user_namespace *ns, struct kqid qid)

返回类型:bool

参数:

类型参数名称
struct user_namespace *ns
struct kqidqid
189  返回:m_kqid - Create a qid from a kqid user-namespace pair.*@targ: The user namespace we want a qid in.*@kqid: The kernel internal quota identifier to start with.* Map @kqid into the user-namespace specified by @targ and* return the resulting qid. != (qid_t) - 1
调用者
名称描述
dqgetGet reference to dquot* Locking is slightly tricky here. We are guarded from parallel quotaoff()* destroying our dquot by:* a) checking for quota flags under dq_list_lock and* b) getting a reference to dquot before we release dq_list_lock
quota_getquota
quota_getnextquotaReturn quota for next active quota >= this id, if any exists,* otherwise return -ENOENT via ->get_nextdqblk
quota_setquota
quota_setxquota
quota_getxquota
quota_getnextxquotaReturn quota for next active quota >= this id, if any exists,* otherwise return -ENOENT via ->get_nextdqblk.