函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Copy parameters and call proper function

函数原型:static int do_quotactl(struct super_block *sb, int type, int cmd, qid_t id, void __user *addr, const struct path *path)

返回类型:int

参数:

类型参数名称
struct super_block *sb
inttype
intcmd
qid_tid
void __user *addr
const struct path *path
687  type等于array_index_nospec - sanitize an array index after a bounds check* For a code sequence like:* if (index < size) {* index = array_index_nospec(index, size);* val = array[index];* }* (type, MAXQUOTAS)
692  如果非s_qcop则返回:负ENOSYS
694  如果非s_quota_types按位与1左移type位的值则返回:负EINVAL
697  ret等于check_quotactl_permission(sb, type, cmd, id)
698  如果ret小于0则返回:ret
702  :cmd恒等于urn quotas on
703  返回:quota_quotaon(sb, type, id, path)
704  :cmd恒等于urn quotas off
705  返回:quota_quotaoff(sb, type)
706  :cmd恒等于get quota format used on given filesystem
707  返回:quota_getfmt(sb, type, addr)
708  :cmd恒等于get information about quota files
709  返回:quota_getinfo(sb, type, addr)
710  :cmd恒等于set information about quota files
711  返回:quota_setinfo(sb, type, addr)
712  :cmd恒等于get user quota structure
713  返回:quota_getquota(sb, type, id, addr)
714  :cmd恒等于get disk limits and usage >= ID
715  返回:Return quota for next active quota >= this id, if any exists,* otherwise return -ENOENT via ->get_nextdqblk
716  :cmd恒等于set user quota structure
717  返回:quota_setquota(sb, type, id, addr)
718  :cmd恒等于sync disk copy of a filesystems quotas
719  如果非quota_sync则返回:负ENOSYS
721  返回:quota_sync(sb, type)
722  :cmd恒等于able accounting/enforcement
723  返回:quota_enable(sb, addr)
724  :cmd恒等于disable accounting/enforcement
725  返回:quota_disable(sb, addr)
726  :cmd恒等于 disk space used by dquots
727  返回:quota_rmxquota(sb, addr)
728  :cmd恒等于get quota subsystem status
729  返回:quota_getxstate(sb, type, addr)
730  :cmd恒等于wer version of get quota
731  返回:quota_getxstatev(sb, type, addr)
732  :cmd恒等于set disk limits
733  返回:quota_setxquota(sb, type, id, addr)
734  :cmd恒等于get disk limits and usage
735  返回:quota_getxquota(sb, type, id, addr)
736  :cmd恒等于get disk limits and usage >= ID
737  返回:Return quota for next active quota >= this id, if any exists,* otherwise return -ENOENT via ->get_nextdqblk.
738  :cmd恒等于delalloc flush, updates dquots
739  如果sb_rdonly(sb)则返回:负EROFS
742  返回:0
743  默认
744  返回:负EINVAL
调用者
名称描述
kernel_quotactlThis 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.