Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GuillaumeGomez/sysinfo
/ functions
Functions
1,805 in github.com/GuillaumeGomez/sysinfo
⨍
Functions
1,805
◇
Types & classes
230
↓ 1 callers
Function
convert_temp_celsius
(temp: Option<i32>)
src/unix/linux/component.rs:175
↓ 1 callers
Function
convert_to_str
(data: &[libc::c_char])
src/unix/linux/gpu.rs:339
↓ 1 callers
Function
copy_from_file
(proc_dir: &mut ProcDir<'_>, name: &CStr, buf: &mut Vec<u8>)
src/unix/linux/process.rs:1029
↓ 1 callers
Function
count_open_descriptors
The number of file descriptors this process has open, counted by asking about each descriptor number in turn. Slow, but it does not depend on how sysi
tests/open_files.rs:14
↓ 1 callers
Method
cpu_usage
(&self)
src/unix/apple/cpu.rs:180
↓ 1 callers
Method
cpu_usage
Returns the total CPU usage (in %). Notice that it might be bigger than 100 if run on a multi-core machine. If you want a value between 0% and 100%,
src/common/system.rs:2073
↓ 1 callers
Method
cpus
(&self)
src/unix/apple/system.rs:343
↓ 1 callers
Function
create_new_process
( pid: Pid, now: u64, refresh_kind: ProcessRefreshKind, info: Option<libc::proc_bsdinfo>,
src/unix/apple/macos/process.rs:443
↓ 1 callers
Method
critical
Returns the highest temperature before the component halts (in celsius degree). ## Linux Critical threshold defined by chip or kernel. ```no_run us
src/common/component.rs:206
↓ 1 callers
Method
cwd
(&self)
src/unix/apple/macos/process.rs:166
↓ 1 callers
Method
cwd
(&self)
src/unix/linux/process.rs:218
↓ 1 callers
Method
data
(&self)
src/unix/apple/cpu.rs:172
↓ 1 callers
Function
decode_octal_escape
(digits: &[u8])
src/unix/linux/cgroup.rs:465
↓ 1 callers
Method
dev_id
(&self)
src/unix/bsd/freebsd/disk.rs:156
↓ 1 callers
Method
dev_id
(&self)
src/unix/bsd/netbsd/disk.rs:196
↓ 1 callers
Method
disk_usage
(&self)
src/unix/bsd/freebsd/process.rs:57
↓ 1 callers
Method
disk_usage
(&self)
src/unix/bsd/netbsd/process.rs:45
↓ 1 callers
Method
disk_usage
(&self)
src/unix/linux/process.rs:258
↓ 1 callers
Method
disk_usage
(&self)
src/windows/process.rs:478
↓ 1 callers
Method
effective_user_id
Returns the user ID of the effective owner of this process or `None` if this information couldn't be retrieved. If you want to get the [`User`] from i
src/common/system.rs:2166
↓ 1 callers
Method
environ
(&self)
src/unix/apple/macos/process.rs:162
↓ 1 callers
Method
environ
(&self)
src/unix/linux/process.rs:214
↓ 1 callers
Method
environ
Returns the environment variables of the process. ```no_run use sysinfo::{Pid, System}; if let Ok(s) = System::new_all() && let Some(process) = s.pr
src/common/system.rs:1889
↓ 1 callers
Method
errors_on_received
Returns the number of incoming errors since the last refresh. If you want the total number of errors on received packets, take a look at the [`total_
src/common/network.rs:304
↓ 1 callers
Method
errors_on_transmitted
Returns the number of outcoming errors since the last refresh. If you want the total number of errors on transmitted packets, take a look at the [`to
src/common/network.rs:346
↓ 1 callers
Method
exe
(&self)
src/unix/linux/process.rs:202
↓ 1 callers
Method
exe
(&self)
src/windows/process.rs:426
↓ 1 callers
Function
fill_device_map
(device_map: &mut HashMap<u32, Devices>, buffer: &mut String)
src/unix/linux/gpu.rs:273
↓ 1 callers
Function
filter
(shell: &str, uid: libc::uid_t)
src/unix/users.rs:130
↓ 1 callers
Function
find_first_vendor
(reader: &mut CustomBufReader<'_>)
src/unix/linux/gpu.rs:254
↓ 1 callers
Function
find_type_for_device_name
(device_name: &OsStr)
src/unix/linux/disk.rs:300
↓ 1 callers
Method
foo
(&self)
tests/system.rs:60
↓ 1 callers
Method
format_label
Compute a label out of available information. See the table in `Component::label`'s documentation.
src/unix/linux/component.rs:333
↓ 1 callers
Method
frequency
(&self)
src/unix/bsd/freebsd/cpu.rs:141
↓ 1 callers
Method
frequency
(&self)
src/unix/bsd/netbsd/cpu.rs:135
↓ 1 callers
Method
frequency
Returns the CPU frequency in MHz.
src/unix/linux/cpu.rs:437
↓ 1 callers
Function
from_cstr_array
(ptr: *const *const libc::c_char)
src/unix/bsd/freebsd/utils.rs:187
↓ 1 callers
Function
from_cstr_array
(ptr: *const *const libc::c_char)
src/unix/bsd/netbsd/utils.rs:213
↓ 1 callers
Function
generate_cpu_usage
()
tests/process.rs:1039
↓ 1 callers
Method
generate_ip_networks
(&mut self)
src/windows/network_helper.rs:70
↓ 1 callers
Function
get_accumulated_cpu_time
(kproc: &libc::kinfo_proc)
src/unix/bsd/freebsd/process.rs:142
↓ 1 callers
Function
get_accumulated_cpu_time
(kproc: &libc::kinfo_proc2)
src/unix/bsd/netbsd/process.rs:71
↓ 1 callers
Function
get_active_status
(kd: NonNull<ffi::kvm_t>, kproc: &libc::kinfo_proc2)
src/unix/bsd/netbsd/process.rs:76
↓ 1 callers
Function
get_actual_device_name
Resolves the actual device name for a specified `device` from `/proc/mounts` This function is inspired by the [`bottom`] crate implementation and ess
src/unix/linux/disk.rs:220
↓ 1 callers
Function
get_all_data_from_file
(file: &mut File, size: usize)
src/unix/linux/utils.rs:11
↓ 1 callers
Function
get_all_list
( container: &mut Vec<Disk>, remove_not_listed_disks: bool, refresh_kind: DiskRefreshKind, )
src/unix/bsd/freebsd/disk.rs:348
↓ 1 callers
Function
get_all_list
( container: &mut Vec<Disk>, remove_not_listed_disks: bool, refresh_kind: DiskRefreshKind, )
src/unix/bsd/netbsd/disk.rs:303
↓ 1 callers
Function
get_all_list
(container: &mut Vec<Disk>, content: &str, refresh_kind: DiskRefreshKind)
src/unix/linux/disk.rs:340
↓ 1 callers
Function
get_all_pcis
()
src/windows/gpu.rs:270
↓ 1 callers
Function
get_amd_info
(gpu: &mut GpuInner, buffer: &mut String, path: &Path)
src/unix/linux/gpu.rs:306
↓ 1 callers
Function
get_arguments
( cmd: &mut Vec<OsString>, mut data: &'a [u8], mut n_args: c_int, refresh_cmd: bool, )
src/unix/apple/macos/process.rs:702
↓ 1 callers
Function
get_arm_implementer
Obtain the implementer of this CPU core. This has been obtained from util-linux's lscpu implementation, see https://github.com/util-linux/util-linux/
src/unix/linux/cpu.rs:552
↓ 1 callers
Function
get_arm_part
Obtain the part of this CPU core. This has been obtained from util-linux's lscpu implementation, see https://github.com/util-linux/util-linux/blob/eb
src/unix/linux/cpu.rs:583
↓ 1 callers
Function
get_array
( dict: &CFDictionary<CFString, CFType>, key: &CFString, )
src/unix/apple/system.rs:800
↓ 1 callers
Method
get_array
(&self, name: &str)
src/windows/cpu.rs:130
↓ 1 callers
Method
get_available_memory
(&self)
src/unix/bsd/freebsd/system.rs:625
↓ 1 callers
Function
get_bsd_info
(pid: Pid)
src/unix/apple/macos/process.rs:417
↓ 1 callers
Function
get_bsd_name
(disk: &libc::statfs)
src/unix/apple/disk.rs:586
↓ 1 callers
Function
get_cgroup_mounts
(path: &Path)
src/unix/linux/cgroup.rs:334
↓ 1 callers
Function
get_cgroup_path
(path: &Path)
src/unix/linux/cgroup.rs:325
↓ 1 callers
Function
get_cmd_line
( params: &T, handle: HANDLE, refresh_kind: ProcessRefreshKind, cmd_line: &mut Vec<OsString>,
src/windows/process.rs:1069
↓ 1 callers
Function
get_cmd_line_new
(handle: HANDLE)
src/windows/process.rs:1056
↓ 1 callers
Function
get_cmd_line_old
(params: &T, handle: HANDLE)
src/windows/process.rs:1045
↓ 1 callers
Function
get_cpu_frequencies
(cpus: &mut [Cpu])
src/unix/bsd/netbsd/cpu.rs:167
↓ 1 callers
Function
get_cpu_frequencies_newer
"newer" way to get CPU frequency.
src/unix/bsd/netbsd/cpu.rs:149
↓ 1 callers
Method
get_cpu_usage
(&mut self)
src/unix/bsd/freebsd/cpu.rs:76
↓ 1 callers
Method
get_cpu_usage
(&mut self)
src/unix/bsd/netbsd/cpu.rs:72
↓ 1 callers
Function
get_cwd_and_root
( params: &T, handle: HANDLE, refresh_kind: ProcessRefreshKind, cwd: &mut Option<PathBuf>,
src/windows/process.rs:1010
↓ 1 callers
Function
get_dev_id
(path: &[c_char])
src/unix/bsd/netbsd/disk.rs:285
↓ 1 callers
Function
get_disk_io
Returns a tuple consisting of the total number of bytes read and written by the specified disk
src/unix/apple/macos/disk.rs:111
↓ 1 callers
Function
get_disk_io
Returns a tuple consisting of the total number of bytes read and written by the volume with the specified device path
src/windows/disk.rs:469
↓ 1 callers
Function
get_disk_kind
(handle: &HandleWrapper)
src/windows/disk.rs:436
↓ 1 callers
Function
get_disk_type
(bsd_name: &[u8])
src/unix/apple/macos/disk.rs:90
↓ 1 callers
Function
get_disks_mapping
()
src/unix/bsd/freebsd/disk.rs:317
↓ 1 callers
Function
get_dns_hostname
()
src/windows/system.rs:518
↓ 1 callers
Function
get_drive_size
(mount_point: &[u16])
src/windows/disk.rs:283
↓ 1 callers
Function
get_english_counter
(query: PDH_HQUERY, name: &str)
src/windows/gpu.rs:192
↓ 1 callers
Function
get_environ
(environ: &mut Vec<OsString>, mut data: &[u8])
src/unix/apple/macos/process.rs:734
↓ 1 callers
Function
get_exe
( exe: &mut Option<PathBuf>, pid: crate::Pid, refresh_kind: ProcessRefreshKind, )
src/unix/bsd/freebsd/process.rs:276
↓ 1 callers
Function
get_exe
(data: &[u8])
src/unix/apple/macos/process.rs:696
↓ 1 callers
Function
get_exe
(process_handler: &HandleWrapper)
src/windows/process.rs:271
↓ 1 callers
Function
get_executable_path
(_pid: Pid)
src/windows/process.rs:1120
↓ 1 callers
Method
get_free_memory
(&self)
src/unix/bsd/freebsd/system.rs:615
↓ 1 callers
Method
get_frequencies
(&mut self)
src/windows/cpu.rs:271
↓ 1 callers
Function
get_frequency_for_cpu
(cpu_nb: usize)
src/unix/bsd/freebsd/cpu.rs:154
↓ 1 callers
Method
get_global_raw_times
(&self)
src/unix/linux/cpu.rs:194
↓ 1 callers
Function
get_group_name
( id: libc::gid_t, buffer: &mut Vec<libc::c_char>, )
src/unix/users.rs:45
↓ 1 callers
Function
get_groups_for_user
Get the groups for a user. # Safety The caller must ensure that the `username` is a valid wide Unicode string with a null terminator.
src/windows/users.rs:129
↓ 1 callers
Function
get_hex_value
(s: &str)
src/unix/linux/cpu.rs:836
↓ 1 callers
Function
get_idle
(cpu_info: *mut i32, offset: isize)
src/unix/apple/cpu.rs:239
↓ 1 callers
Function
get_in_use
(cpu_info: *mut i32, offset: isize)
src/unix/apple/cpu.rs:228
↓ 1 callers
Function
get_interface_ip_networks
()
src/windows/network_helper.rs:86
↓ 1 callers
Function
get_ip_address_from_socket_address
Converts a Windows socket address to an ip address.
src/windows/network_helper.rs:153
↓ 1 callers
Function
get_ip_networks
(mut prefixes_ptr: *mut IP_ADAPTER_UNICAST_ADDRESS_LH)
src/windows/network_helper.rs:135
↓ 1 callers
Function
get_list
(container: &mut Vec<Disk>, refresh_kind: DiskRefreshKind)
src/unix/apple/disk.rs:250
↓ 1 callers
Function
get_list
( disks: &mut Vec<Disk>, remove_not_listed_disks: bool, refreshes: DiskRefreshKind, )
src/windows/disk.rs:303
↓ 1 callers
Function
get_load_average
()
src/windows/cpu.rs:24
↓ 1 callers
Method
get_max_process_cpu_usage
It is sometime possible that a CPU usage computation is bigger than `"number of CPUs" * 100`. To prevent that, we compute ahead of time this maximum
src/unix/linux/system.rs:146
↓ 1 callers
Function
get_memory
( proc_dir: &mut ProcDir<'_>, entry: &mut ProcessInner, info: &SystemInfo, buf: &mut Vec<u8>,
src/unix/linux/process.rs:1332
↓ 1 callers
Method
get_new
(&self)
src/unix/bsd/freebsd/cpu.rs:203
← previous
next →
301–400 of 1,805, ranked by callers