函数逻辑报告 |
Source Code:fs\quota\dquot.c |
Create Date:2022-07-29 11:08:40 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Get 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
函数原型:struct dquot *dqget(struct super_block *sb, struct kqid qid)
返回类型:struct dquot
参数:
类型 | 参数 | 名称 |
---|---|---|
struct super_block * | sb | |
struct kqid | qid |
851 | 如果非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.则返回:错误号 |
856 | we_slept : |
857 | 加自旋锁 |
858 | 加自旋锁 |
865 | 自旋锁解锁 |
867 | dquot等于find_dquot(hashent, sb, qid) |
868 | 如果非dquot则 |
885 | 否则 |
886 | 如果非atomic_read( & Use count )则remove_free_dquot(dquot) |
888 | atomic_inc( & Use count ) |
889 | 自旋锁解锁 |
891 | dqstats_inc(DQST_LOOKUPS) |
911 | smp_rmb() |
915 | out : |
916 | 如果empty则do_destroy_dquot(empty) |
919 | 返回:dquot |
名称 | 描述 |
---|---|
__dquot_initialize | |
dquot_transfer | Wrapper for transferring ownership of an inode for uid/gid only* Called from FSXXX_setattr() |
dquot_get_dqblk | |
dquot_get_next_dqblk | |
dquot_set_dqblk |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |