{"id":408,"date":"2020-08-18T19:23:47","date_gmt":"2020-08-18T20:23:47","guid":{"rendered":"http:\/\/www.linux-tutorial.info\/?page_id=77"},"modified":"2020-08-22T19:25:16","modified_gmt":"2020-08-22T20:25:16","slug":"this-is-the-page-title-toplevel-241","status":"publish","type":"page","link":"http:\/\/www.linux-tutorial.info\/?page_id=408","title":{"rendered":"Abstract Interfaces"},"content":{"rendered":"\n<title>Abstract Interfaces<\/title>\n<p>\nThe Linux kernel often abstracts its interfaces.\nAn interface is a collection of routines and data structures which operate in a\nwell-defined way. For example all, network device drivers have to provide certain\nroutines to operate on particular data structures.\nThis way there can be generic layers of code using the services (interfaces) of lower layers\nof specific code.\nThe network layer is generic and it is supported by device specific code that conforms to a\nstandard interface.\n<p>\nOften these lower layers <em>register<\/em> themselves with the upper layer at boot time.\nThis registration usually involves adding a data structure to a linked list.\nFor example each filesystem built into the kernel registers itself with the kernel\nat boot time or, if you are using modules, when the filesystem is first used.\nYou can see which filesystems have registered themselves by looking at the file\n<tt>\/proc\/filesystems<\/tt>.\n<p>\nThe registration data structure often includes pointers to functions.\nThese are the addresses of software functions that perform particular tasks.\nAgain, using filesystem registration as an example, the data structure that each\nfilesystem passes to the Linux kernel as it registers includes the address of a\nfilesystem specfic routine which must be called whenever that filesystem is mounted.\n","protected":false},"excerpt":{"rendered":"<p>Abstract Interfaces The Linux kernel often abstracts its interfaces. An interface is a collection of routines and data structures which operate in a well-defined way. For example all, network device drivers have to provide certain routines to operate on particular &hellip; <a href=\"http:\/\/www.linux-tutorial.info\/?page_id=408\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-408","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/www.linux-tutorial.info\/index.php?rest_route=\/wp\/v2\/pages\/408","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.linux-tutorial.info\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.linux-tutorial.info\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.linux-tutorial.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.linux-tutorial.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=408"}],"version-history":[{"count":1,"href":"http:\/\/www.linux-tutorial.info\/index.php?rest_route=\/wp\/v2\/pages\/408\/revisions"}],"predecessor-version":[{"id":491,"href":"http:\/\/www.linux-tutorial.info\/index.php?rest_route=\/wp\/v2\/pages\/408\/revisions\/491"}],"wp:attachment":[{"href":"http:\/\/www.linux-tutorial.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=408"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}