Comments (1)
The feature apparently is used to test on a *nix system that has both sysfs files and another methodology, forcing other methodologies to be tried.
if (!(opt.flags & FLAG_NO_SYSFS)
&& (buf = read_file(0, &size, SYS_ENTRY_FILE)) != NULL)
other methodologies:
/* Next try EFI (ia64, Intel-based Mac, arm64) */
efi = address_from_efi(&fp);
switch (efi)
{
case EFI_NOT_FOUND:
goto memory_scan;
case EFI_NO_SMBIOS:
ret = 1;
goto exit_free;
}
or:
#if defined __i386__ || defined __x86_64__
if (!(opt.flags & FLAG_QUIET))
pr_info("Scanning %s for entry point.", opt.devmem);
/* Fallback to memory scan (x86, x86_64) */
if ((buf = mem_chunk(0xF0000, 0x10000, opt.devmem)) == NULL)
{
ret = 1;
goto exit_free;
}
from dmidecode-rs.
Related Issues (20)
- --string muti-return feature HOT 1
- Enhance github's "about" with topics and better description
- flag -l , list also all the instances
- Add rust VSCode devcontainer
- Some dmi keyword output look not readable HOT 5
- Make JSON output possible HOT 1
- PathBuf and OsStr use - not String HOT 3
- Implement --oem-string N HOT 2
- Implement -d, --dev-mem FILE HOT 1
- Add tests for new CL options HOT 2
- Improve error reporting HOT 2
- Create crate for dmidecode-rs
- Create parity with dmidecode standard output
- Add dmi_decode_oem functionality
- Add processor additional information
- --no-sysfs prints json HOT 1
- Diverge JSON output from simple serialization of smbios structures? HOT 3
- --dump-bin doesn't produce identical file to dmidecode HOT 1
- Panic when piping output to head HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dmidecode-rs.