Module util

Module util 

Source
Expand description

系统调用辅助函数

Functions§

check_syslog_permission
检查 syslog 操作权限
create_file_at
在指定目录下创建一个新文件
create_file_from_dentry
根据 inode 类型创建对应的 File 实例
flush_all_block_devices
刷新所有块设备
flush_block_device_by_fd
从文件描述符获取对应的块设备并刷新
get_args_safe
从用户空间获取参数字符串数组
get_dmesg_restrict 🔒
获取 dmesg_restrict sysctl 值
get_first_block_device
获取第一个可用的块设备驱动
get_path_safe
从用户空间获取路径字符串
resolve_at_path
解析at系列系统调用的路径
resolve_at_path_with_flags
根据 dirfd 和路径解析 dentry,支持符号链接控制
validate_syslog_args
验证 syslog 系统调用参数