MCPcopy Create free account

hub / github.com/GuillaumeGomez/sysinfo / functions

Functions1,805 in github.com/GuillaumeGomez/sysinfo

↓ 1 callersMethodmemory
(&self)
src/unix/linux/process.rs:226
↓ 1 callersMethodmemory
(&self)
src/windows/process.rs:446
↓ 1 callersMethodmtu
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 callersMethodname
(&self)
src/unix/network_helper.rs:61
↓ 1 callersFunctionnew_disk
( disk: Option<&mut Disk>, mount_point: PathBuf, volume_url: CFRetained<CFURL>, c_disk: libc::
src/unix/apple/disk.rs:442
↓ 1 callersFunctionnew_disk
( device_name: &OsStr, mount_point: &Path, file_system: &OsStr, removable_entries: &[PathBuf],
src/unix/linux/disk.rs:260
↓ 1 callersFunctionnew_groups
()
src/unix/groups.rs:92
↓ 1 callersFunctionnew_users
()
src/unix/users.rs:177
↓ 1 callersMethodnext
(&mut self)
src/unix/bsd/netbsd/network.rs:152
↓ 1 callersFunctionnormalize_cgroup_path
(path: &str)
src/unix/linux/cgroup.rs:421
↓ 1 callersFunctionnormalize_mountinfo_path
(path: &str)
src/unix/linux/cgroup.rs:429
↓ 1 callersFunctionold_get_memory
(entry: &mut ProcessInner, parts: &Parts, info: &SystemInfo)
src/unix/linux/process.rs:1315
↓ 1 callersMethodopen_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 callersFunctionos_string_from_zero_terminated
(name: &[u16])
src/windows/disk.rs:431
↓ 1 callersMethodpackets_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 callersMethodpackets_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 callersFunctionparse_interface_address
(ifap: &libc::ifaddrs)
src/unix/network_helper.rs:160
↓ 1 callersFunctionparse_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 callersFunctionph_query_process_variable_size
( process_handle: HANDLE, process_information_class: PROCESSINFOCLASS, )
src/windows/process.rs:690
↓ 1 callersMethodpid
(&self)
src/unix/linux/process.rs:206
↓ 1 callersMethodprefix
(&self)
src/unix/network_helper.rs:89
↓ 1 callersFunctionprint_help
()
examples/simple.rs:14
↓ 1 callersMethodprocess
(&self, pid: Pid)
src/unix/linux/system.rs:270
↓ 1 callersMethodprocess
(&self, pid: Pid)
src/windows/system.rs:340
↓ 1 callersMethodprocesses_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 callersMethodprocesses_mut
(&mut self)
src/unix/linux/system.rs:266
↓ 1 callersMethodquery
(&self, gpus: &mut Vec<Gpu>)
src/unix/linux/gpu.rs:495
↓ 1 callersMethodquery
(self)
src/windows/gpu.rs:389
↓ 1 callersFunctionquery_gpu_utilization
( query: PDH_HQUERY, gpu_query: PDH_HCOUNTER, )
src/windows/gpu.rs:302
↓ 1 callersFunctionread_dirs
(dirs: &[P], callback: &mut F)
tests/code_checkers/utils.rs:19
↓ 1 callersFunctionread_file
(p: P)
tests/code_checkers/utils.rs:43
↓ 1 callersFunctionread_file_into
(file: &mut File, buf: &mut Vec<u8>)
src/unix/linux/utils.rs:22
↓ 1 callersFunctionread_key
( con: io_connect_t, input_structure: &ffi::KeyData_t, mut val: ffi::Val_t, )
src/unix/apple/macos/component/x86.rs:250
↓ 1 callersFunctionread_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 callersFunctionread_path_into
(file_path: P, buf: &mut Vec<u8>)
src/unix/linux/utils.rs:33
↓ 1 callersFunctionread_signed
(parent: P, path: &str, data: &mut [u8])
src/unix/linux/network.rs:41
↓ 1 callersFunctionread_sockaddr
(sa: *const libc::sockaddr)
src/unix/network_helper.rs:233
↓ 1 callersFunctionread_str
(parent: P, path: &str, data: &'data mut Vec<u8>)
src/unix/linux/network.rs:68
↓ 1 callersFunctionread_temp_dir
(path: &Path, starts_with: &str, mut f: F)
src/unix/linux/component.rs:389
↓ 1 callersFunctionread_v2_memory_max
(filename: &Path, root: &Path)
src/unix/linux/cgroup.rs:241
↓ 1 callersMethodrealloc
(mut self, size: libc::size_t)
src/windows/network_helper.rs:35
↓ 1 callersFunctionrealpath
(path: P)
src/unix/utils.rs:64
↓ 1 callersMethodrefresh
(&mut self)
src/unix/linux/component.rs:371
↓ 1 callersMethodrefresh
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 callersFunctionrefresh_component
(id: &[u8])
src/unix/bsd/freebsd/component.rs:59
↓ 1 callersFunctionrefresh_component
(id: &[u8])
src/unix/bsd/netbsd/component.rs:59
↓ 1 callersMethodrefresh_cpu_specifics
(&mut self, refresh_kind: CpuRefreshKind)
src/unix/linux/system.rs:236
↓ 1 callersMethodrefresh_cpu_specifics
(&mut self, refresh_kind: CpuRefreshKind)
src/windows/system.rs:114
↓ 1 callersMethodrefresh_cpus
(&mut self, only_update_global_cpu: bool, refresh_kind: CpuRefreshKind)
src/unix/linux/system.rs:171
↓ 1 callersFunctionrefresh_gpu
( p: &mut ProcessInner, refresh_kind: crate::ProcessRefreshKind, gpu_query: &mut Option<Query>, )
src/windows/process.rs:1224
↓ 1 callersMethodrefresh_if_needed
( &mut self, only_update_global_cpu: bool, refresh_kind: CpuRefreshKind, )
src/unix/linux/cpu.rs:37
↓ 1 callersMethodrefresh_interfaces
(&mut self, refresh_all: bool)
src/unix/bsd/freebsd/network.rs:55
↓ 1 callersMethodrefresh_interfaces
(&mut self, refresh_all: bool)
src/unix/bsd/netbsd/network.rs:56
↓ 1 callersFunctionrefresh_network_interfaces
( interfaces: &mut HashMap<OsString, crate::NetworkData>, )
src/unix/network_helper.rs:197
↓ 1 callersMethodrefresh_processes_specifics
( &mut self, processes_to_update: ProcessesToUpdate<'_>, refresh_kind: ProcessRefreshK
src/unix/linux/system.rs:240
↓ 1 callersFunctionrefresh_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 callersMethodrefresh_procs
( &mut self, processes_to_update: ProcessesToUpdate<'_>, refresh_kind: ProcessRefreshK
src/unix/bsd/freebsd/system.rs:271
↓ 1 callersMethodrefresh_procs
( &mut self, processes_to_update: ProcessesToUpdate<'_>, refresh_kind: ProcessRefreshK
src/unix/bsd/netbsd/system.rs:295
↓ 1 callersMethodrefresh_specifics
(&mut self, refreshes: DiskRefreshKind)
src/windows/disk.rs:205
↓ 1 callersFunctionrefresh_user_group_ids
( p: &mut ProcessInner, ids: Option<Ids>, refresh_kind: ProcessRefreshKind, )
src/unix/linux/process.rs:983
↓ 1 callersMethodreset
(&mut self)
src/unix/bsd/freebsd/disk.rs:540
↓ 1 callersFunctionresolve_cgroup_base
(cgroup_path: &Path, mount: &CGroupMount)
src/unix/linux/cgroup.rs:345
↓ 1 callersMethodroot
(&self)
src/unix/apple/macos/process.rs:170
↓ 1 callersMethodroot
(&self)
src/unix/linux/process.rs:222
↓ 1 callersMethodrun_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 callersFunctionsame_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 callersFunctionsame_name
(dev_id: &[c_char], drive_name: &[c_char])
src/unix/bsd/netbsd/disk.rs:232
↓ 1 callersMethodset_cpu_usage
(&mut self, value: f32)
src/windows/cpu.rs:286
↓ 1 callersMethodset_frequency
(&mut self, frequency: u64)
src/unix/apple/cpu.rs:176
↓ 1 callersMethodset_frequency
(&mut self, value: u64)
src/windows/cpu.rs:342
↓ 1 callersMethodset_nonexistent
(&mut self)
src/unix/linux/process.rs:317
↓ 1 callersFunctionset_time
(p: &mut ProcessInner, utime: u64, stime: u64)
src/unix/linux/process.rs:774
↓ 1 callersFunctionsplit_content
(data: &[u8])
src/unix/linux/process.rs:1006
↓ 1 callersMethodstart_time
(&self)
src/windows/process.rs:462
↓ 1 callersMethodstatus
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 callersFunctionstrtoul
(s: &[i8])
src/unix/apple/macos/component/x86.rs:200
↓ 1 callersFunctionsysinfo_cpu_brand
(system: CSystem)
src/c_interface.rs:556
↓ 1 callersFunctionsysinfo_cpu_frequency
(system: CSystem)
src/c_interface.rs:576
↓ 1 callersFunctionsysinfo_cpu_physical_cores
()
src/c_interface.rs:648
↓ 1 callersFunctionsysinfo_cpu_vendor_id
(system: CSystem)
src/c_interface.rs:536
↓ 1 callersFunctionsysinfo_cpus_usage
( system: CSystem, length: *mut c_uint, procs: *mut *mut c_float, )
src/c_interface.rs:326
↓ 1 callersFunctionsysinfo_destroy
(system: CSystem)
src/c_interface.rs:40
↓ 1 callersFunctionsysinfo_free_memory
(system: CSystem)
src/c_interface.rs:169
↓ 1 callersFunctionsysinfo_free_swap
(system: CSystem)
src/c_interface.rs:203
↓ 1 callersFunctionsysinfo_init
()
src/c_interface.rs:33
↓ 1 callersFunctionsysinfo_networks_destroy
(networks: CNetworks)
src/c_interface.rs:270
↓ 1 callersFunctionsysinfo_networks_init
()
src/c_interface.rs:263
↓ 1 callersFunctionsysinfo_networks_received
(networks: CNetworks)
src/c_interface.rs:294
↓ 1 callersFunctionsysinfo_networks_refresh
(networks: CNetworks)
src/c_interface.rs:279
↓ 1 callersFunctionsysinfo_networks_transmitted
(networks: CNetworks)
src/c_interface.rs:309
↓ 1 callersFunctionsysinfo_process_cpu_usage
(process: CProcess)
src/c_interface.rs:457
↓ 1 callersFunctionsysinfo_process_executable_path
(process: CProcess)
src/c_interface.rs:481
↓ 1 callersFunctionsysinfo_process_memory
(process: CProcess)
src/c_interface.rs:465
↓ 1 callersFunctionsysinfo_process_parent_pid
(process: CProcess)
src/c_interface.rs:449
↓ 1 callersFunctionsysinfo_process_pid
(process: CProcess)
src/c_interface.rs:439
↓ 1 callersFunctionsysinfo_process_tasks
( process: CProcess, fn_pointer: Option<ProcessPidLoop>, data: *mut c_void, )
src/c_interface.rs:412
↓ 1 callersFunctionsysinfo_process_virtual_memory
(process: CProcess)
src/c_interface.rs:473
↓ 1 callersFunctionsysinfo_processes
( system: CSystem, fn_pointer: Option<ProcessLoop>, data: *mut c_void, )
src/c_interface.rs:359
↓ 1 callersFunctionsysinfo_refresh_all
(system: CSystem)
src/c_interface.rs:77
↓ 1 callersFunctionsysinfo_refresh_processes
(system: CSystem)
src/c_interface.rs:93
← previousnext →501–600 of 1,805, ranked by callers