diff options
author | Karel Zak | 2018-05-25 12:51:55 +0200 |
---|---|---|
committer | Karel Zak | 2018-06-21 13:07:46 +0200 |
commit | 6e509042b80c0549c6634cbdf66b71d0b764a158 (patch) | |
tree | 8cc99bbde72662e97f127cc05bf368b219d51e86 /sys-utils/lscpu.h | |
parent | lib/path: add ul_prefix_fopen(), improve cpuset funcs (diff) | |
download | kernel-qcow2-util-linux-6e509042b80c0549c6634cbdf66b71d0b764a158.tar.gz kernel-qcow2-util-linux-6e509042b80c0549c6634cbdf66b71d0b764a158.tar.xz kernel-qcow2-util-linux-6e509042b80c0549c6634cbdf66b71d0b764a158.zip |
lscpu: use new ul_path_* API
* use ul_path_* API for /sys/devices/system/cpu paths
* use ul_path_* API for /proc
* rename is_compatible() to is_devtree_compatible() as it works
with the devices tree only
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/lscpu.h')
-rw-r--r-- | sys-utils/lscpu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys-utils/lscpu.h b/sys-utils/lscpu.h index 3d1885a3e..223961d13 100644 --- a/sys-utils/lscpu.h +++ b/sys-utils/lscpu.h @@ -77,6 +77,11 @@ struct polarization_modes { /* global description */ struct lscpu_desc { + const char *prefix; /* path to /sys and /proc snapshot or NULL */ + + struct path_cxt *syscpu; /* _PATH_SYS_CPU path handler */ + struct path_cxt *procfs; /* /proc path handler */ + char *arch; char *vendor; char *machinetype; /* s390 */ |