[−][src]Function rpi_info::load_cpuinfo
pub fn load_cpuinfo() -> Result<Option<RaspberryPiInfo>>
Load RPi info from /proc/cpuinfo
.
The outer Result
is for any i/o errors (more likely a permission issue than any other error
for a procfs file).
The inner Option
will be None
if the contents of /proc/cpuinfo
was not recognized as
any known Raspberry Pi model.