{"id":4744,"date":"2022-12-20T18:36:50","date_gmt":"2022-12-20T21:36:50","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/makedev-d-man5\/"},"modified":"2022-12-20T18:36:50","modified_gmt":"2022-12-20T21:36:50","slug":"makedev-d-man5","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/makedev-d-man5\/","title":{"rendered":"makedev.d (man5)"},"content":{"rendered":"<h1 align=\"center\">makedev.d<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#SYNTAX\">SYNTAX<\/a><br \/> <a href=\"#CUSTOMIZATION\">CUSTOMIZATION<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/a><br \/> <a href=\"#NOTES\">NOTES<\/a><br \/> <a href=\"#FILES\">FILES<\/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\">makedev.d \u2212 configuration files for devices creation through makedev<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The behavior of <b>makedev<\/b> is instrumented by the configuration files in <i>\/etc\/makedev.d\/<\/i> directory. They\u2019re read and &#8220;executed&#8221; by <b>makedev(8)<\/b> on post installation of the MAKEDEV package.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">These configuration file consists of a set of lines.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">All empty lines, and all text on a line after a \u2019#\u2019, will be ignored.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The remaining lines should all conform to one of the following formats:<\/p>\n<h2>SYNTAX <a name=\"SYNTAX\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This is a description of the four basic legal directives. <b><br \/> =NAME expanded text<\/b><\/p>\n<p style=\"margin-left:22%;\">this define a macro. eg: <i>=BURNER 660 root cdwriter<\/i> will make <b>makedev<\/b> expand <i>$BURNER<\/i> when encountered.<\/p>\n<p style=\"margin-left:11%;\"><b>b mask owner group major minor minor_step dev_number root_name base<\/b><\/p>\n<p style=\"margin-left:22%;\">this directive define some <i>block<\/i> (\u2018\u2018b\u2019\u2019) device(s) creation. They will be owned by <i>owner<\/i> and <i>group<\/i> and will have the <i>major<\/i> and <i>minor<\/i> as major and minor numbers. <br \/> The <i>dev_number<\/i> arguments define how many devices will be created. If <i>dev_number<\/i> is different from 1, then <i>dev_number<\/i> devices will be created, their minor number being incremented by <i>minor_step<\/i> at each step. <br \/> If only one device is created, it will be named <i>root_name<\/i>. Else, the devices will be named with regards to the following rules :<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"68%\">\n<p>If <i>root_name<\/i> does not contains \u2018\u2018%d\u2019\u2019, then \u2018\u2018\u2018<i>%d<\/i>\u2019\u2019 is appended to its end.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"68%\">\n<p>If <i>base<\/i> is not set, it is initialized to zero.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"68%\">\n<p>Then, at each step, the name of the device we have to created is obtained by incrementing <i>base<\/i> and replacing \u2018\u2018%d\u2019\u2019 by <i>base<\/i>. This is equivament to these statements : $base++; $file = sprintf($name, $base);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>c mask owner group major minor minor_step dev_number root_name base<\/b><\/p>\n<p style=\"margin-left:22%;\">is quite the same directive as the previous one, exept its purpose is <i>character<\/i> devices (\u2018\u2018c\u2019\u2019) creation.<\/p>\n<p style=\"margin-left:11%;\"><b>l destination source<\/b><\/p>\n<p style=\"margin-left:22%;\">will make <b>makdev<\/b> symlink <i>source<\/i> on <i>destination<\/i>.<\/p>\n<h2>CUSTOMIZATION <a name=\"CUSTOMIZATION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Since there is currently no standardization in what names are used for system users and groups, it is possible that you may need to modify <b>makedev<\/b>\u2019s configuration files to reflect your site\u2019s settings.<\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:22%; margin-top: 1em\"># \/etc\/makedev.d\/test sample <br \/> #<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"># the following line create (\u2018\u2018\u2018<b>c<\/b>\u2019\u2019) the famous <i>\/dev\/null<\/i> entry <br \/> # with 666 mask (file access permissions), with 1 as major and <br \/> # 3 as minor <br \/> c 666 root root 1 3 1 1 null<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"># the following line define the STORAGE macro that specify a 660 <br \/> # mask for file permissions, root as owner and disk as group <br \/> =STORAGE 660 root disk<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"># the following line create 16 <i>\/dev\/hdaX<\/i> entries (\/dev\/hda0 to <br \/> # \/dev\/hda15) with the permissions and ownership defined above, <br \/> # and with 22 as major <br \/> b $STORAGE 22 0 1 16 hda%d<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"># this one link \/dev\/snd on alsa entry in procfs <br \/> # (usually mounted in \/proc) <br \/> l snd ..\/proc\/asound\/dev<\/p>\n<h2>NOTES <a name=\"NOTES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The name of the file may contain some \u2018\u2018<i>\/<\/i>\u2019\u2019 characters : <b>makdev<\/b> will create the necessary directories if the node to create must be in a sub directory. <br \/> Comments must begin on first line character. <br \/> Files are parsed one by one, after having been sorted by name in alphabetical order.<\/p>\n<h2>FILES <a name=\"FILES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>\/etc\/makedev.d\/*<\/i> files contains instructions that instrument <b>makdev<\/b> to create the device files in \/dev. Especially, <i>\/etc\/makedev.d\/00macros<\/i> define most frequently used macros.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Linux Allocated Devices, maintained by H.\u00a0Peter Anvin, <Peter.Anvin@linux.org>. <br \/> It is ususally found in <i>\/usr\/src\/linux\/Documentation\/devices.txt<\/i> if kernel-source package is installed or in <i>\/usr\/share\/doc\/kernel-doc-<VERSION>\/devices.txt<\/i> if kernel-doc package is installed. <VERSION> is the version number of the installed kernel (eg: 2.4.19).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>makedev<\/b>(8)<\/p>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Thierry Vignaud <<i>tvignaud@mandrakesoft.com<\/i>>, 2002<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The device database is heavily inspirated by Redhat one.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  makedev.d \u2212 configuration files for devices creation through makedev <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[959],"tags":[961,198,1291],"class_list":["post-4744","post","type-post","status-publish","format-standard","hentry","category-5-formatos-de-ficheros","tag-961","tag-makedev","tag-man5"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4744","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=4744"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4744\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4744"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4744"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4744"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}