From 6e509042b80c0549c6634cbdf66b71d0b764a158 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 25 May 2018 12:51:55 +0200 Subject: 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 --- sys-utils/lscpu.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sys-utils/lscpu.h') 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 */ -- cgit v1.2.3-55-g7522