{"id":4744,"date":"2014-03-30T15:02:54","date_gmt":"2014-03-30T15:02:54","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/how-to-get-config-data-from-a-linux-kernel-module-collection-of-common-programming-errors\/"},"modified":"2014-03-30T15:02:54","modified_gmt":"2014-03-30T15:02:54","slug":"how-to-get-config-data-from-a-linux-kernel-module-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/how-to-get-config-data-from-a-linux-kernel-module-collection-of-common-programming-errors\/","title":{"rendered":"How to get config data from a Linux kernel module?-Collection of common programming errors"},"content":{"rendered":"<p>If you truly need dirt simple, then pass parameters to the module on the <code>insmod<\/code>\/<code>modprobe<\/code> command line.<\/p>\n<p>To see how to declare parameters, look at other people&#8217;s modules.<\/p>\n<p>(To do anything in a module that other people&#8217;s modules already do, look at other people&#8217;s modules, including how to register into sysfs.)<\/p>\n<p>If the configuration can change at runtime, while the module stays inserted, then you can&#8217;t use module parameters for it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you truly need dirt simple, then pass parameters to the module on the insmod\/modprobe command line. To see how to declare parameters, look at other people&#8217;s modules. (To do anything in a module that other people&#8217;s modules already do, look at other people&#8217;s modules, including how to register into sysfs.) If the configuration can [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4744","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4744","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4744"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4744\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4744"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4744"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4744"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}