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
Method
memory
(&self)
src/unix/linux/process.rs:226
↓ 1 callers
Method
memory
(&self)
src/windows/process.rs:446
↓ 1 callers
Method
mtu
Returns the Maximum Transfer Unit (MTU) of the interface. ```no_run use sysinfo::Networks; if let Ok(mut networks) = Networks::new_with_refreshed_li
src/common/network.rs:409
↓ 1 callers
Method
name
(&self)
src/unix/network_helper.rs:61
↓ 1 callers
Function
new_disk
( disk: Option<&mut Disk>, mount_point: PathBuf, volume_url: CFRetained<CFURL>, c_disk: libc::
src/unix/apple/disk.rs:442
↓ 1 callers
Function
new_disk
( device_name: &OsStr, mount_point: &Path, file_system: &OsStr, removable_entries: &[PathBuf],
src/unix/linux/disk.rs:260
↓ 1 callers
Function
new_groups
()
src/unix/groups.rs:92
↓ 1 callers
Function
new_users
()
src/unix/users.rs:177
↓ 1 callers
Method
next
(&mut self)
src/unix/bsd/netbsd/network.rs:152
↓ 1 callers
Function
normalize_cgroup_path
(path: &str)
src/unix/linux/cgroup.rs:421
↓ 1 callers
Function
normalize_mountinfo_path
(path: &str)
src/unix/linux/cgroup.rs:429
↓ 1 callers
Function
old_get_memory
(entry: &mut ProcessInner, parts: &Parts, info: &SystemInfo)
src/unix/linux/process.rs:1315
↓ 1 callers
Method
open_files
Returns the number of open files in the current process. Returns `None` if it failed retrieving the information or if the current system is not suppo
src/common/system.rs:2332
↓ 1 callers
Function
os_string_from_zero_terminated
(name: &[u16])
src/windows/disk.rs:431
↓ 1 callers
Method
packets_received
Returns the number of incoming packets since the last refresh. If you want the total number of packets received, take a look at the [`total_packets_r
src/common/network.rs:220
↓ 1 callers
Method
packets_transmitted
Returns the number of outcoming packets since the last refresh. If you want the total number of packets transmitted, take a look at the [`total_packe
src/common/network.rs:262
↓ 1 callers
Function
parse_interface_address
(ifap: &libc::ifaddrs)
src/unix/network_helper.rs:160
↓ 1 callers
Function
parse_pcidebug
`pcidebug` format: either `busNum:deviceNum:functionNum` or `busNum:deviceNum:functionNum(secBusNum:subBusNum)` (decimal) https://github.com/apple-oss
src/unix/apple/gpu.rs:193
↓ 1 callers
Function
ph_query_process_variable_size
( process_handle: HANDLE, process_information_class: PROCESSINFOCLASS, )
src/windows/process.rs:690
↓ 1 callers
Method
pid
(&self)
src/unix/linux/process.rs:206
↓ 1 callers
Method
prefix
(&self)
src/unix/network_helper.rs:89
↓ 1 callers
Function
print_help
()
examples/simple.rs:14
↓ 1 callers
Method
process
(&self, pid: Pid)
src/unix/linux/system.rs:270
↓ 1 callers
Method
process
(&self, pid: Pid)
src/windows/system.rs:340
↓ 1 callers
Method
processes_by_exact_name
Returns an iterator of processes with exactly the given `name`. If you instead want the processes containing `name`, take a look at [`System::process
src/common/system.rs:559
↓ 1 callers
Method
processes_mut
(&mut self)
src/unix/linux/system.rs:266
↓ 1 callers
Method
query
(&self, gpus: &mut Vec<Gpu>)
src/unix/linux/gpu.rs:495
↓ 1 callers
Method
query
(self)
src/windows/gpu.rs:389
↓ 1 callers
Function
query_gpu_utilization
( query: PDH_HQUERY, gpu_query: PDH_HCOUNTER, )
src/windows/gpu.rs:302
↓ 1 callers
Function
read_dirs
(dirs: &[P], callback: &mut F)
tests/code_checkers/utils.rs:19
↓ 1 callers
Function
read_file
(p: P)
tests/code_checkers/utils.rs:43
↓ 1 callers
Function
read_file_into
(file: &mut File, buf: &mut Vec<u8>)
src/unix/linux/utils.rs:22
↓ 1 callers
Function
read_key
( con: io_connect_t, input_structure: &ffi::KeyData_t, mut val: ffi::Val_t, )
src/unix/apple/macos/component/x86.rs:250
↓ 1 callers
Function
read_number_from_file
Designed at first for reading an `i32` or `u32` aka `c_long` from a `/sys/class/hwmon` sysfs file.
src/unix/linux/component.rs:145
↓ 1 callers
Function
read_path_into
(file_path: P, buf: &mut Vec<u8>)
src/unix/linux/utils.rs:33
↓ 1 callers
Function
read_signed
(parent: P, path: &str, data: &mut [u8])
src/unix/linux/network.rs:41
↓ 1 callers
Function
read_sockaddr
(sa: *const libc::sockaddr)
src/unix/network_helper.rs:233
↓ 1 callers
Function
read_str
(parent: P, path: &str, data: &'data mut Vec<u8>)
src/unix/linux/network.rs:68
↓ 1 callers
Function
read_temp_dir
(path: &Path, starts_with: &str, mut f: F)
src/unix/linux/component.rs:389
↓ 1 callers
Function
read_v2_memory_max
(filename: &Path, root: &Path)
src/unix/linux/cgroup.rs:241
↓ 1 callers
Method
realloc
(mut self, size: libc::size_t)
src/windows/network_helper.rs:35
↓ 1 callers
Function
realpath
(path: P)
src/unix/utils.rs:64
↓ 1 callers
Method
refresh
(&mut self)
src/unix/linux/component.rs:371
↓ 1 callers
Method
refresh
Refreshes the network interfaces. ```no_run use sysinfo::Networks; if let Ok(mut networks) = Networks::new_with_refreshed_list() { // Wait some time
src/common/network.rs:85
↓ 1 callers
Function
refresh_component
(id: &[u8])
src/unix/bsd/freebsd/component.rs:59
↓ 1 callers
Function
refresh_component
(id: &[u8])
src/unix/bsd/netbsd/component.rs:59
↓ 1 callers
Method
refresh_cpu_specifics
(&mut self, refresh_kind: CpuRefreshKind)
src/unix/linux/system.rs:236
↓ 1 callers
Method
refresh_cpu_specifics
(&mut self, refresh_kind: CpuRefreshKind)
src/windows/system.rs:114
↓ 1 callers
Method
refresh_cpus
(&mut self, only_update_global_cpu: bool, refresh_kind: CpuRefreshKind)
src/unix/linux/system.rs:171
↓ 1 callers
Function
refresh_gpu
( p: &mut ProcessInner, refresh_kind: crate::ProcessRefreshKind, gpu_query: &mut Option<Query>, )
src/windows/process.rs:1224
↓ 1 callers
Method
refresh_if_needed
( &mut self, only_update_global_cpu: bool, refresh_kind: CpuRefreshKind, )
src/unix/linux/cpu.rs:37
↓ 1 callers
Method
refresh_interfaces
(&mut self, refresh_all: bool)
src/unix/bsd/freebsd/network.rs:55
↓ 1 callers
Method
refresh_interfaces
(&mut self, refresh_all: bool)
src/unix/bsd/netbsd/network.rs:56
↓ 1 callers
Function
refresh_network_interfaces
( interfaces: &mut HashMap<OsString, crate::NetworkData>, )
src/unix/network_helper.rs:197
↓ 1 callers
Method
refresh_processes_specifics
( &mut self, processes_to_update: ProcessesToUpdate<'_>, refresh_kind: ProcessRefreshK
src/unix/linux/system.rs:240
↓ 1 callers
Function
refresh_procs
We're forced to read the whole `/proc` folder because if a process died and another took its place, we need to get the task parent (if it's a task).
src/unix/linux/process.rs:1407
↓ 1 callers
Method
refresh_procs
( &mut self, processes_to_update: ProcessesToUpdate<'_>, refresh_kind: ProcessRefreshK
src/unix/bsd/freebsd/system.rs:271
↓ 1 callers
Method
refresh_procs
( &mut self, processes_to_update: ProcessesToUpdate<'_>, refresh_kind: ProcessRefreshK
src/unix/bsd/netbsd/system.rs:295
↓ 1 callers
Method
refresh_specifics
(&mut self, refreshes: DiskRefreshKind)
src/windows/disk.rs:205
↓ 1 callers
Function
refresh_user_group_ids
( p: &mut ProcessInner, ids: Option<Ids>, refresh_kind: ProcessRefreshKind, )
src/unix/linux/process.rs:983
↓ 1 callers
Method
reset
(&mut self)
src/unix/bsd/freebsd/disk.rs:540
↓ 1 callers
Function
resolve_cgroup_base
(cgroup_path: &Path, mount: &CGroupMount)
src/unix/linux/cgroup.rs:345
↓ 1 callers
Method
root
(&self)
src/unix/apple/macos/process.rs:170
↓ 1 callers
Method
root
(&self)
src/unix/linux/process.rs:222
↓ 1 callers
Method
run_time
Returns for how much time the process has been running (in seconds). ```no_run use sysinfo::{Pid, System}; if let Ok(s) = System::new_all() && let S
src/common/system.rs:2036
↓ 1 callers
Function
same_fd_table
It's possible, using the `unshare` function, to make a thread not use the same `fd` table as its parent process. So returns `true` if both `pid` share
src/unix/linux/process.rs:408
↓ 1 callers
Function
same_name
(dev_id: &[c_char], drive_name: &[c_char])
src/unix/bsd/netbsd/disk.rs:232
↓ 1 callers
Method
set_cpu_usage
(&mut self, value: f32)
src/windows/cpu.rs:286
↓ 1 callers
Method
set_frequency
(&mut self, frequency: u64)
src/unix/apple/cpu.rs:176
↓ 1 callers
Method
set_frequency
(&mut self, value: u64)
src/windows/cpu.rs:342
↓ 1 callers
Method
set_nonexistent
(&mut self)
src/unix/linux/process.rs:317
↓ 1 callers
Function
set_time
(p: &mut ProcessInner, utime: u64, stime: u64)
src/unix/linux/process.rs:774
↓ 1 callers
Function
split_content
(data: &[u8])
src/unix/linux/process.rs:1006
↓ 1 callers
Method
start_time
(&self)
src/windows/process.rs:462
↓ 1 callers
Method
status
Returns the status of the process. ```no_run use sysinfo::{Pid, System}; if let Ok(s) = System::new_all() && let Some(process) = s.process(Pid::from
src/common/system.rs:2006
↓ 1 callers
Function
strtoul
(s: &[i8])
src/unix/apple/macos/component/x86.rs:200
↓ 1 callers
Function
sysinfo_cpu_brand
(system: CSystem)
src/c_interface.rs:556
↓ 1 callers
Function
sysinfo_cpu_frequency
(system: CSystem)
src/c_interface.rs:576
↓ 1 callers
Function
sysinfo_cpu_physical_cores
()
src/c_interface.rs:648
↓ 1 callers
Function
sysinfo_cpu_vendor_id
(system: CSystem)
src/c_interface.rs:536
↓ 1 callers
Function
sysinfo_cpus_usage
( system: CSystem, length: *mut c_uint, procs: *mut *mut c_float, )
src/c_interface.rs:326
↓ 1 callers
Function
sysinfo_destroy
(system: CSystem)
src/c_interface.rs:40
↓ 1 callers
Function
sysinfo_free_memory
(system: CSystem)
src/c_interface.rs:169
↓ 1 callers
Function
sysinfo_free_swap
(system: CSystem)
src/c_interface.rs:203
↓ 1 callers
Function
sysinfo_init
()
src/c_interface.rs:33
↓ 1 callers
Function
sysinfo_networks_destroy
(networks: CNetworks)
src/c_interface.rs:270
↓ 1 callers
Function
sysinfo_networks_init
()
src/c_interface.rs:263
↓ 1 callers
Function
sysinfo_networks_received
(networks: CNetworks)
src/c_interface.rs:294
↓ 1 callers
Function
sysinfo_networks_refresh
(networks: CNetworks)
src/c_interface.rs:279
↓ 1 callers
Function
sysinfo_networks_transmitted
(networks: CNetworks)
src/c_interface.rs:309
↓ 1 callers
Function
sysinfo_process_cpu_usage
(process: CProcess)
src/c_interface.rs:457
↓ 1 callers
Function
sysinfo_process_executable_path
(process: CProcess)
src/c_interface.rs:481
↓ 1 callers
Function
sysinfo_process_memory
(process: CProcess)
src/c_interface.rs:465
↓ 1 callers
Function
sysinfo_process_parent_pid
(process: CProcess)
src/c_interface.rs:449
↓ 1 callers
Function
sysinfo_process_pid
(process: CProcess)
src/c_interface.rs:439
↓ 1 callers
Function
sysinfo_process_tasks
( process: CProcess, fn_pointer: Option<ProcessPidLoop>, data: *mut c_void, )
src/c_interface.rs:412
↓ 1 callers
Function
sysinfo_process_virtual_memory
(process: CProcess)
src/c_interface.rs:473
↓ 1 callers
Function
sysinfo_processes
( system: CSystem, fn_pointer: Option<ProcessLoop>, data: *mut c_void, )
src/c_interface.rs:359
↓ 1 callers
Function
sysinfo_refresh_all
(system: CSystem)
src/c_interface.rs:77
↓ 1 callers
Function
sysinfo_refresh_processes
(system: CSystem)
src/c_interface.rs:93
← previous
next →
501–600 of 1,805, ranked by callers