[−][src]Module rsys::linux
Linux specific api
Structs
BlockStorageStat | Represents stats of a block storage device
read from /sys/block/ |
Core | Represents a virtual core in a cpu |
DeviceMapper | |
IfaceDev | Represents a data line of /proc/net/dev |
Memory | |
MountPoint | Represents a line of /proc/mounts |
MultipleDeviceStorage | |
Partition | |
Process | Represents a process from /proc/[pid]/stat |
Processor | A structure representing host machine cpu |
ScsiCdrom | |
StorageDevice | Represents a block storage device. |
Enums
ProcessState |
Traits
OsImplExt | Trait extending Rsys functionality with linux specific api |
Functions
arch | Returns the processor architecture |
block_size | Returns block size of device in bytes device argument must be a path to block device file descriptor |
cores | Returns Core objects with frequencies |
cpu | Returns the name of first seen cpu in /proc/cpuinfo |
cpu_clock | Returns cpu clock of first core in /proc/cpuinfo file. |
cpu_cores | Returns total cpu cores available. |
default_iface | Returns a default interface. |
domainname | Returns a domainname read from /proc/sys/kernel/domainname |
hostname | Returns a hostname. |
ifaces | Returns Ifaces parsed from /proc/net/dev |
interfaces | Returns a list of interfaces names. |
ipv4 | Returns an IPv4 address of a given iface. |
ipv6 | Returns an IPv6 address of a given iface. |
kernel_version | Returns a kernel version of host os. |
logical_cores | Returns total logical cores available. |
mac | Returns a mac address of given iface |
memory | Returns detailed information about memory |
memory_free | Returns free memory |
memory_total | Returns total memory. |
mounts | Returns MountPoints read from /proc/mounts |
pids | Returns a list of pids read from /proc |
processes | Returns all processes currently seen in /proc parsed as Processes |
processor | Returns a Processor object containing gathered information about host machine processor. |
stat_block_device | Parses a StorageDevice object from system. If the provided name
doesn't start with |
stat_device_mapper | Parses a DeviceMapper object from system. If the provided name
doesn't start with |
stat_multiple_device_storage | Parses a MultipleDeviceStorage object from system. If the provided name
doesn't start with |
stat_process | Returns detailed Process information parsed from /proc/[pid]/stat |
stat_scsi_cdrom | Parses a ScsiCdrom object from system. If the provided name
doesn't start with |
swap_free | Returns free swap space. |
swap_total | Returns total swap space. |
test_sysinfo | |
uptime | Returns current uptime. |
Type Definitions
Cores | |
DeviceMappers | |
Ifaces | |
MountPoints | |
MultipleDeviceStorages | |
Partitions | |
Processes | |
ScsiCdroms | |
StorageDevices |