Lines Matching refs:val
18 struct sysinfo val; in sys_sysinfo() local
20 memset((char *)&val, 0, sizeof(struct sysinfo)); in sys_sysinfo()
23 val.uptime = jiffies / HZ; in sys_sysinfo()
25 val.loads[0] = avenrun[0] << (SI_LOAD_SHIFT - FSHIFT); in sys_sysinfo()
26 val.loads[1] = avenrun[1] << (SI_LOAD_SHIFT - FSHIFT); in sys_sysinfo()
27 val.loads[2] = avenrun[2] << (SI_LOAD_SHIFT - FSHIFT); in sys_sysinfo()
29 val.procs = nr_threads-1; in sys_sysinfo()
32 si_meminfo(&val); in sys_sysinfo()
33 si_swapinfo(&val); in sys_sysinfo()
46 mem_total = val.totalram + val.totalswap; in sys_sysinfo()
47 if (mem_total < val.totalram || mem_total < val.totalswap) in sys_sysinfo()
50 mem_unit = val.mem_unit; in sys_sysinfo()
65 val.mem_unit = 1; in sys_sysinfo()
66 val.totalram <<= bitcount; in sys_sysinfo()
67 val.freeram <<= bitcount; in sys_sysinfo()
68 val.sharedram <<= bitcount; in sys_sysinfo()
69 val.bufferram <<= bitcount; in sys_sysinfo()
70 val.totalswap <<= bitcount; in sys_sysinfo()
71 val.freeswap <<= bitcount; in sys_sysinfo()
72 val.totalhigh <<= bitcount; in sys_sysinfo()
73 val.freehigh <<= bitcount; in sys_sysinfo()
76 if (copy_to_user(info, &val, sizeof(struct sysinfo))) in sys_sysinfo()