
{"id":6834,"date":"2012-03-08T15:30:37","date_gmt":"2012-03-08T15:30:37","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=6834"},"modified":"2012-03-08T15:30:37","modified_gmt":"2012-03-08T15:30:37","slug":"c-code-segment-thu-mar-8-205838-ist-2012","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2012\/03\/08\/c-code-segment-thu-mar-8-205838-ist-2012\/","title":{"rendered":"C code Filesystem"},"content":{"rendered":"<h4><u> [c] Code Segment <\/u><\/h4>\n<p><code><br \/>\n const struct vm_operations_struct generic_file_vm_ops = {<br \/>\n        .fault          = filemap_fault,<br \/>\n+       .page_mkwrite   = filemap_page_mkwrite,<br \/>\n };<\/p>\n<p><\/code><br \/>\n<\/p>\n<h4><u>Code Dissection<\/u><\/h4>\n<pre>\n1.const --- A C language keyword.\nMakes variable value or pointer parameter unmodifiable.\n2.struct --- A C language keyword\nGroups variables into a single record.\n3.vm_operations_struct --- A structure name.\n4.generic_file_vm_ops --- A structure variable.\n5. .fault and .page_mkwrite --- designated names.\n\nsource :http:\/\/gcc.gnu.org\/onlinedocs\/gcc\/Designated-Inits.html\n<\/pre>\n<p><\/p>\n<p><u> Theory Drop <\/u><\/p>\n<pre>\nStructures  in C  are defined  as data  containers consisting  of a\nsequence of  named members  of various types.  They are  similar to\nrecords in other programming  languages. The members of a structure\nare  stored  in  consecutive  locations  in  memory,  although  the\ncompiler is allowed to insert padding between or after members (but\nnot  before  the  first  member)  for efficiency.  The  size  of  a\nstructure is equal to the sum of the sizes of its members, plus the\nsize of the padding.\n\nsource : http:\/\/en.wikipedia.org\/wiki\/C_syntax#Structures_and_unions\n<\/pre>\n<p>\n<u>CONNECTION<\/u><\/p>\n<pre>\nThe code segment contains  \"struct\" keyword.\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>[c] Code Segment const struct vm_operations_struct generic_file_vm_ops = { .fault = filemap_fault, + .page_mkwrite = filemap_page_mkwrite, }; Code Dissection 1.const &#8212; A C language keyword. Makes variable value or pointer parameter unmodifiable. 2.struct &#8212; A C language keyword Groups variables into a single record. 3.vm_operations_struct &#8212; A structure name. 4.generic_file_vm_ops &#8212; A structure variable. 5. &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2012\/03\/08\/c-code-segment-thu-mar-8-205838-ist-2012\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;C code Filesystem&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/6834"}],"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=6834"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/6834\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=6834"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=6834"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=6834"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}