
{"id":16334,"date":"2015-04-16T13:42:47","date_gmt":"2015-04-16T13:42:47","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=16334"},"modified":"2015-04-16T13:42:47","modified_gmt":"2015-04-16T13:42:47","slug":"internal-of-lscpu-command","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2015\/04\/16\/internal-of-lscpu-command\/","title":{"rendered":"Internal of lscpu command"},"content":{"rendered":"<pre>\nI think lscpu command is using proc filesystem to get data.\n\/* \/sys paths *\/\n#define _PATH_SYS_SYSTEM        \"\/sys\/devices\/system\"\n#define _PATH_SYS_CPU           _PATH_SYS_SYSTEM \"\/cpu\"\n#define _PATH_SYS_NODE          _PATH_SYS_SYSTEM \"\/node\"\n#define _PATH_PROC_XEN          \"\/proc\/xen\"\n#define _PATH_PROC_XENCAP       _PATH_PROC_XEN \"\/capabilities\"\n#define _PATH_PROC_CPUINFO      \"\/proc\/cpuinfo\"\n#define _PATH_PROC_PCIDEVS      \"\/proc\/bus\/pci\/devices\"\n#define _PATH_PROC_SYSINFO      \"\/proc\/sysinfo\"\n#define _PATH_PROC_STATUS       \"\/proc\/self\/status\"\n#define _PATH_PROC_VZ   \"\/proc\/vz\"\n#define _PATH_PROC_BC   \"\/proc\/bc\"\n#define _PATH_PROC_DEVICETREE   \"\/proc\/device-tree\"\n#define _PATH_DEV_MEM           \"\/dev\/mem\"\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I think lscpu command is using proc filesystem to get data. \/* \/sys paths *\/ #define _PATH_SYS_SYSTEM &#8220;\/sys\/devices\/system&#8221; #define _PATH_SYS_CPU _PATH_SYS_SYSTEM &#8220;\/cpu&#8221; #define _PATH_SYS_NODE _PATH_SYS_SYSTEM &#8220;\/node&#8221; #define _PATH_PROC_XEN &#8220;\/proc\/xen&#8221; #define _PATH_PROC_XENCAP _PATH_PROC_XEN &#8220;\/capabilities&#8221; #define _PATH_PROC_CPUINFO &#8220;\/proc\/cpuinfo&#8221; #define _PATH_PROC_PCIDEVS &#8220;\/proc\/bus\/pci\/devices&#8221; #define _PATH_PROC_SYSINFO &#8220;\/proc\/sysinfo&#8221; #define _PATH_PROC_STATUS &#8220;\/proc\/self\/status&#8221; #define _PATH_PROC_VZ &#8220;\/proc\/vz&#8221; #define _PATH_PROC_BC &#8220;\/proc\/bc&#8221; #define _PATH_PROC_DEVICETREE &#8220;\/proc\/device-tree&#8221; #define &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2015\/04\/16\/internal-of-lscpu-command\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Internal of lscpu command&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[83],"tags":[1079],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/16334"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=16334"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/16334\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=16334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=16334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=16334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}