{"id":119,"date":"2014-10-14T18:53:45","date_gmt":"2014-10-14T18:53:45","guid":{"rendered":"http:\/\/adrhc.go.ro\/wordpress\/?p=119"},"modified":"2014-10-14T18:53:45","modified_gmt":"2014-10-14T18:53:45","slug":"compute-linux-version-code","status":"publish","type":"post","link":"https:\/\/adrhc.go.ro\/blog\/compute-linux-version-code\/","title":{"rendered":"Compute linux version code"},"content":{"rendered":"<pre class=\"brush:bash shell\">\r\nLinux version.h: LINUX_VERSION_CODE is X*65536 + Y*256 + Z\r\n\r\ne.g. Linux 2.6.31.8:\r\nLINUX_VERSION_CODE = 2*65536 + 6*256 + 31 = 132639\r\n\r\nroot@nsa310:~# cat \/ffp\/include\/linux\/version.h\r\n#define LINUX_VERSION_CODE 132639\r\n#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Linux version.h: LINUX_VERSION_CODE is X*65536 + Y*256 + Z e.g. Linux 2.6.31.8: LINUX_VERSION_CODE = 2*65536 + 6*256 + 31 = 132639 root@nsa310:~# cat \/ffp\/include\/linux\/version.h #define LINUX_VERSION_CODE 132639 #define KERNEL_VERSION(a,b,c) (((a)<\/p>\n<div class=\"link-more\"><a href=\"https:\/\/adrhc.go.ro\/blog\/compute-linux-version-code\/#more-119\" class=\"more-link\">Continue reading &#10142; <span class=\"screen-reader-text\">Compute linux version code<\/span><\/a><\/div>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-119","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/comments?post=119"}],"version-history":[{"count":0,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/119\/revisions"}],"wp:attachment":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/media?parent=119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/categories?post=119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/tags?post=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}