函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\kdev_t.h Create Date:2022-07-27 06:43:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:new_decode_dev

函数原型:static inline dev_t new_decode_dev(u32 dev)

返回类型:dev_t

参数:

类型参数名称
u32dev
48  major等于dev按位与0xfff00的值右移8位
49  minor等于dev按位与0xff按位或dev右移12位按位与0xfff00
50  返回:MKDEV(major, minor)
调用者
名称描述
huge_decode_dev
handle_initrd
md_setup_drive
SYSCALL_DEFINE2
COMPAT_SYSCALL_DEFINE2This is a copy of sys_ustat, just dealing with a structure layout.* Given how simple this syscall is that apporach is more maintainable* than the various conversion hacks.