Function report |
Source Code:fs\quota\quota.c |
Create Date:2022-07-28 20:33:42 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:int kernel_quotactl(unsigned int cmd, const char __user *special, qid_t id, void __user *addr)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| unsigned int | cmd | |
| const char __user * | special | |
| qid_t | id | |
| void __user * | addr |
| 823 | struct super_block * sb = NULL |
| 827 | cmds = cmd >> SUBCMDSHIFT |
| 838 | If Not special Then |
| 839 | If cmds == sync disk copy of a filesystems quotas Then Return quota_sync_all(type) |
| 841 | Return -ENODEV |
| 849 | If cmds == urn quotas on Then |
| 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 |
| 867 | Else drop_super_exclusive(sb) |
| 869 | out : |
| 870 | If pathp && Not IS_ERR(pathp) Then 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 | Return ret |
| Name | Describe |
|---|---|
| SYSCALL_DEFINE4 | |
| COMPAT_SYSCALL_DEFINE4 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |