函数逻辑报告 |
Source Code:fs\quota\quota.c |
Create Date:2022-07-29 11:10:18 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:This is the system call interface. This communicates with* the user-level programs. Currently this only supports diskquota* calls. Maybe we need to add the process quotas etc. in the future,* but we probably should use rlimits for that.
函数原型:int kernel_quotactl(unsigned int cmd, const char __user *special, qid_t id, void __user *addr)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| unsigned int | cmd | |
| const char __user * | special | |
| qid_t | id | |
| void __user * | addr |
| 823 | struct super_block * sb = NULL |
| 827 | cmds等于cmd右移SUBCMDSHIFT位 |
| 838 | 如果非special则 |
| 839 | 如果cmds恒等于sync disk copy of a filesystems quotas 则返回:quota_sync_all(type) |
| 841 | 返回:负ENODEV |
| 849 | 如果cmds恒等于urn quotas on 则 |
| 857 | sb等于look up a superblock on which quota ops will be performed* - use the name of a block device to find the superblock thereon |
| 858 | 如果是错误则 |
| 867 | 否则drop_super_exclusive(sb) |
| 869 | out : |
| 870 | 如果pathp且非是错误则path_put - put a reference to a path*@path: path to put the reference to* Given a path decrement the reference count to the dentry and the vfsmount. |
| 872 | 返回:ret |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |