函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:COMPAT_SYSCALL_DEFINE1

函数原型:COMPAT_SYSCALL_DEFINE1(sysinfo, struct compat_sysinfo __user *, info)

返回类型:

参数:

2611  do_sysinfo - fill in sysinfo struct*@info: pointer to buffer to fill
2616  如果upper_32_bits - return bits 32-63 of a number*@n: the number we're accessing* A basic shift-right of a 64- or 32-bit quantity. Use this to suppress* the "right shift count >= width of type" warning when that quantity is* 32-bits.( Total usable main memory size )或upper_32_bits - return bits 32-63 of a number*@n: the number we're accessing* A basic shift-right of a 64- or 32-bit quantity. Use this to suppress* the "right shift count >= width of type" warning when that quantity is* 32-bits.( Total swap space size )则
2617  bitcount等于0
2620  Memory unit size in bytes 左移等于1位
2621  bitcount自加
2624  Total usable main memory size 右移等于bitcount
2625  Available memory size 右移等于bitcount
2626  Amount of shared memory 右移等于bitcount
2627  Memory used by buffers 右移等于bitcount
2628  Total swap space size 右移等于bitcount
2629  swap space still available 右移等于bitcount
2630  Total high memory size 右移等于bitcount
2631  Available high memory size 右移等于bitcount
2634  如果非access_ok - Checks if a user space pointer is valid*@addr: User space pointer to start of block to check*@size: Size of block to check* Context: User context only. This function may sleep if pagefaults are* enabled.(info, sizeof(structcompat_sysinfo))或__put_user - Write a simple value into user space, with less checking( Seconds since boot , & uptime)或__put_user - Write a simple value into user space, with less checking( 1, 5, and 15 minute load averages [0], & loads[0])或__put_user - Write a simple value into user space, with less checking( 1, 5, and 15 minute load averages [1], & loads[1])或__put_user - Write a simple value into user space, with less checking( 1, 5, and 15 minute load averages [2], & loads[2])或__put_user - Write a simple value into user space, with less checking( Total usable main memory size , & totalram)或__put_user - Write a simple value into user space, with less checking( Available memory size , & freeram)或__put_user - Write a simple value into user space, with less checking( Amount of shared memory , & sharedram)或__put_user - Write a simple value into user space, with less checking( Memory used by buffers , & bufferram)或__put_user - Write a simple value into user space, with less checking( Total swap space size , & totalswap)或__put_user - Write a simple value into user space, with less checking( swap space still available , & freeswap)或__put_user - Write a simple value into user space, with less checking( Number of current processes , & procs)或__put_user - Write a simple value into user space, with less checking( Total high memory size , & totalhigh)或__put_user - Write a simple value into user space, with less checking( Available high memory size , & freehigh)或__put_user - Write a simple value into user space, with less checking( Memory unit size in bytes , & mem_unit)则返回:负EFAULT
2651  返回:0