{"id":432524,"date":"2018-06-18T14:50:23","date_gmt":"2018-06-18T14:50:23","guid":{"rendered":"https:\/\/essaypaper.org\/?p=26729"},"modified":"2018-10-24T08:59:13","modified_gmt":"2018-10-24T08:59:13","slug":"computer-science-pseudo-file-proc-mem_map","status":"publish","type":"post","link":"https:\/\/www.benedictsol.com\/blogs\/computer-science-pseudo-file-proc-mem_map\/","title":{"rendered":"Computer Science-Pseudo file \/proc\/mem_map"},"content":{"rendered":"<h2>Pseudo file \/proc\/mem_map<\/h2>\n<p>Creating a \/proc entry<br \/>\n=============================<\/p>\n<p>Create a pseudo file \/proc\/mem_map by using a separate Linux kernel module (not statically linked into the kernel. From here on, all the assignments are expected to be Linux Modules).<\/p>\n<p>As you all know by now, mem_map is a global array that consists of all the struct page entries.<\/p>\n<p>It should display the following information&#8230;<\/p>\n<p>1. Virtual Address of mem_map global variable in the Linux kernel. In short, contents of the variable.<br \/>\n2. Physical Address of mem_map location. Convert the above virtual address to physical and print it<br \/>\n3. Print the number of struct page entries that are available as part of the mem_map<\/p>\n<p>You can read some more information about mem_map at&#8230;<br \/>\nhttp:\/\/www.chudov.com\/tmp\/LinuxVM\/html\/understand\/node28.html<\/p>\n<p>Goals:<br \/>\n=====<br \/>\n* You will learn how the \/proc entries are created<br \/>\n* Learn how to convert the virtual to physical and vice versa in Linux kernel<br \/>\n* Ability to look at and if necessary understand the struct page entries<\/p>\n<p>Submission<br \/>\n=========<br \/>\n* Module code and associated Makefile<br \/>\n* Readme.txt &#8211; Details of how to build, execute and what to expect<\/p>\n<p>Notes:<br \/>\nIn some systems, mem_map variable is not exported or used. In such scenarios, please use pfn_to_page(0) in place of mem_map. Meaning and use of both are exactly same.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pseudo file \/proc\/mem_map Creating a \/proc entry ============================= Create a pseudo file \/proc\/mem_map by using a separate Linux kernel module (not statically linked into the kernel. From here on, all the assignments are expected to be Linux Modules). As you <a href=\"https:\/\/www.benedictsol.com\/blogs\/computer-science-pseudo-file-proc-mem_map\/\" class=\"read-more\">Read More &#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-432524","post","type-post","status-publish","format-standard","hentry","category-essay-paper-writing"],"_links":{"self":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/432524","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/comments?post=432524"}],"version-history":[{"count":0,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/432524\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/media?parent=432524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/categories?post=432524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/tags?post=432524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}