Internal of lscpu command

I think lscpu command is using proc filesystem to get data.
/* /sys paths */
#define _PATH_SYS_SYSTEM        "/sys/devices/system"
#define _PATH_SYS_CPU           _PATH_SYS_SYSTEM "/cpu"
#define _PATH_SYS_NODE          _PATH_SYS_SYSTEM "/node"
#define _PATH_PROC_XEN          "/proc/xen"
#define _PATH_PROC_XENCAP       _PATH_PROC_XEN "/capabilities"
#define _PATH_PROC_CPUINFO      "/proc/cpuinfo"
#define _PATH_PROC_PCIDEVS      "/proc/bus/pci/devices"
#define _PATH_PROC_SYSINFO      "/proc/sysinfo"
#define _PATH_PROC_STATUS       "/proc/self/status"
#define _PATH_PROC_VZ   "/proc/vz"
#define _PATH_PROC_BC   "/proc/bc"
#define _PATH_PROC_DEVICETREE   "/proc/device-tree"
#define _PATH_DEV_MEM           "/dev/mem"