Function report |
Source Code:kernel\sys.c |
Create Date:2022-07-28 09:21:36 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:do_sysinfo - fill in sysinfo struct*@info: pointer to buffer to fill
Proto:static int do_sysinfo(struct sysinfo *info)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct sysinfo * | info |
2524 | Seconds since boot = seconds + If nanoseconds Then 1 Else 0 |
2530 | si_meminfo(info) |
2531 | si_swapinfo(info) |
2543 | If mem_total < Total usable main memory size || mem_total < Total swap space size Then Go to out |
2545 | bitcount = 0 |
2563 | Memory unit size in bytes = 1 |
2564 | Total usable main memory size <<= bitcount |
2565 | Available memory size <<= bitcount |
2566 | Amount of shared memory <<= bitcount |
2567 | Memory used by buffers <<= bitcount |
2568 | Total swap space size <<= bitcount |
2569 | swap space still available <<= bitcount |
2570 | Total high memory size <<= bitcount |
2571 | Available high memory size <<= bitcount |
2573 | out : |
2574 | Return 0 |
Name | Describe |
---|---|
SYSCALL_DEFINE1 | |
COMPAT_SYSCALL_DEFINE1 |
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 |