{"id":4159,"date":"2022-12-20T17:39:34","date_gmt":"2022-12-20T20:39:34","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/proc_scsi_register-man9\/"},"modified":"2022-12-20T17:39:34","modified_gmt":"2022-12-20T20:39:34","slug":"proc_scsi_register-man9","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/proc_scsi_register-man9\/","title":{"rendered":"proc_scsi_register (man9)"},"content":{"rendered":"<h1 align=\"center\">proc_scsi_register<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#RETURN VALUE\">RETURN VALUE<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">proc_scsi_register, proc_scsi_unregister \u2212 register SCSI entries in the \/proc filesystem<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>#include <linux\/proc_fs.h> int\u00a0proc_scsi_register(struct\u00a0proc_dir_entry\u00a0*\u00a0<\/b><i>driver<\/i><b>, <br \/> struct\u00a0proc_dir_entry\u00a0*\u00a0<\/b><i>child<\/i><b>); <br \/> int\u00a0proc_scsi_unregister(struct\u00a0proc_dir_entry\u00a0*\u00a0<\/b><i>driver<\/i><b>, int\u00a0<\/b><i>inode<\/i><b>);<\/b><\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">These are wrapper functions around <b>proc_register<\/b> and <b>proc_unregister<\/b>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>proc_scsi_register<\/b> always sets the <i>ops<\/i> field of <b>child<\/b> to proc_scsi_inode_operations. If the child inode number is less than PROC_SCSI_FILE, the child is registered with a parent of proc_scsi and <b>driver<\/b> is ignored. Otherwise the child is registered with a parent of <b>driver<\/b>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>proc_scsi_unregister<\/b>. If the child inode number is less than PROC_SCSI_FILE, the child is unregistered with a parent of proc_scsi and <b>driver<\/b> is ignored. Otherwise the child is unregistered with a parent of <b>driver<\/b> and scsi_init_free is called on the child.<\/p>\n<h2>RETURN VALUE <a name=\"RETURN VALUE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">As for <b>proc_register<\/b> and <b>proc_unregister<\/b>.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>proc_register<\/b>(9), <b>proc_unregister<\/b>(9)<\/p>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Keith Owens <kaos@ocs.com.au><\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  proc_scsi_register, proc_scsi_unregister \u2212 register SCSI entries in the \/proc filesystem <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1222],"tags":[1226,1223,1225,1239],"class_list":["post-4159","post","type-post","status-publish","format-standard","hentry","category-9-rutinas-del-nucleo","tag-1226","tag-kernel","tag-man9","tag-proc_scsi_register"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=4159"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4159\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}