Главная страница


ru.linux

 
 - RU.LINUX ---------------------------------------------------------------------
 From : Konstantin Brazhnikov                2:4615/85      14 Apr 2002  23:15:00
 To : Ivan Churkin
 Subject : devfs
 -------------------------------------------------------------------------------- 
 
 13 Апреля [Суббота] 2002 21:54, you wrote to all:
 
  IC> Что такое сабж и с чем его едят?Те что такое примерно знаю, но зачем
  IC> оно и чем оно удобней(если удобней).
 
 ==============  cooledit.clip  { //begin quote  ==============
 Note that the file operations are implemented by the specific
 filesystem in which the inode resides. When opening a device node
 (character or block special) most filesystems will call special
 support routines in the VFS which will locate the required device
 driver information. These support routines replace the filesystem file
 operations with those for the device driver, and then proceed to call
 the new open() method for the file. This is how opening a device file
 in the filesystem eventually ends up calling the device driver open()
 method. Note the devfs (the Device FileSystem) has a more direct path
 from device node to device driver (this is an unofficial kernel
 patch).
 
 DEVFS is the DEVice File System available as an add on package for the
 2.2.x kernels and available as a configuration option in 2.3.46 and higher.
 Devfs allows for the automatic creation and management of device names
 under control of the device drivers themselves.  The Devfs namespace is
 hierarchical and reduces the clutter present in the normal flat /dev
 namespace.  Devfs names and conventional device names may be intermixed.
 A userspace daemon, devfsd, exists to allow for automatic creation and
 management of symbolic links from the devfs name space to the conventional
 names.  More details on devfs can be found on the DEVFS home site at
 
        URL: http://www.atnf.csiro.au/~rgooch/linux/docs/devfs.txt
        Description: Document describing Richard Gooch's controversial
        devfs, which allows for dynamic devices, only shows present
        devices in /dev, gets rid of major/minor numbers allocation
        problems, and allows for hundreds of identical devices (which some
        USB systems might demand soon).
 ==============  cooledit.clip  } //end   quote ==============
 
 А самому, наверняка трудно было сделать нечто вроде
 grep -w devfs /usr/src/linux/Documentation/*
 или поискать в окрестностях того источника, где ты о сабже услышал?
 
 PS: По поводу твоего вопроса о goto: к счастью, ни в одном нормальном шелле,
 как и нормальном же языке программирования, этого оператора нет, ибо он и нафиг
 не нужен. Разве что, в примитивщине, вроде бейсика или коммандкома, где нет или
 почти нет условных операторов. Его применение приводит к резкому ухудшению
 понимаемости программы, к запутанности текста, а все иллюзорные преимущества
 легко реализуются при помощи иных, "правильных" команд. Единственный пример,
 когда употребеление goto не ничего не портит - организация бесконечного цикла -
 легко реализуется конструкциями while true или do until false.
 
 PPS: Слушай, а ты не задумывался над тем, чтобы купить какую-нибудь
 простенькую-простенькую книжку по основам юниксов, а заодно и прграммирования?
 
 Konstantin
 
 ... Будет и на бабкиной улице Юрьев день.
 --- Библия учит любить ближнего, а Кама-Сутра объясняет - как.
  * Origin: mailto:johnxdoe@fido.avugu.lg.ua (2:4615/85)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 devfs   Ivan Churkin   13 Apr 2002 21:54:57 
 devfs   Konstantin Brazhnikov   14 Apr 2002 23:15:00 
Архивное /ru.linux/18833cb9edb3.html, оценка 2 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional