* [sisyphus] udev
@ 2005-03-15 17:04 Andriy Dobrovol's'kii
2005-03-16 7:05 ` Alexey Morozov
0 siblings, 1 reply; 2+ messages in thread
From: Andriy Dobrovol's'kii @ 2005-03-15 17:04 UTC (permalink / raw)
To: Sisyphus
Hi,
Пытаюсь вот с udev подружиться... Ну и начал с чтения манов. :)
Первые вопросы:
Почему оно говорит, что udev - Linux configurable dynamic device
naming support? Т.е., как я это понял, поддержка динамического
именования устройств в линуксе с возможностью настройки. Тогда как,
сразу же рядом ниже, пишет, что эта программа создает и удаляет
файлы устройств по мере их появления-исчезновения в системе.
udev provides a dynamic device directory containing only the files
for actually present devices. It creates or removes device node
files usually located in the /dev directory, or it renames network
interfaces.
А что это про сетевые интерфейсы? Это оно про работу с ppp*? Или оно
и с eth* тоже работает?
As part of the hotplug subsystem, udev is executed if a
kernel device is added or removed from the system. On device
creation, udev reads the sysfs directory of the given device to
collect device attributes like label, serial number or bus device
number. These attributes may be used as keys to determine a
unique name for the device. udev main tains a database for devices
present on the system.
А serial number or bus device number это по-русски, что в данном
случае будет? Номер последовательного порта и идентификатор
устройства на шине?
On device removal, udev queries its database for the name of
the device file to be deleted.
--
Rgrds,
Andriy
*********************************************************************
email: dobr at iop dot kiev dot ua Kyiv, Ukraine
Phone: (380-44) 265-7824 Department of Gas Electronics
Fax: (380-44) 265-2329 Institute of Physics of NASU
*********************************************************************
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [sisyphus] udev
2005-03-15 17:04 [sisyphus] udev Andriy Dobrovol's'kii
@ 2005-03-16 7:05 ` Alexey Morozov
0 siblings, 0 replies; 2+ messages in thread
From: Alexey Morozov @ 2005-03-16 7:05 UTC (permalink / raw)
To: ALT Linux Sisyphus discussion list
[-- Attachment #1: Type: text/plain, Size: 2353 bytes --]
On Tue, Mar 15, 2005 at 07:04:41PM +0200, Andriy Dobrovol's'kii wrote:
> Hi,
> Пытаюсь вот с udev подружиться... Ну и начал с чтения манов. :)
> Первые вопросы:
> Почему оно говорит, что udev - Linux configurable dynamic device
> naming support? Т.е., как я это понял, поддержка динамического
> именования устройств в линуксе с возможностью настройки. Тогда как,
Да.
> сразу же рядом ниже, пишет, что эта программа создает и удаляет
> файлы устройств по мере их появления-исчезновения в системе.
Где противоречие?
> udev provides a dynamic device directory containing only the files
> for actually present devices. It creates or removes device node
> files usually located in the /dev directory, or it renames network
> interfaces.
>
> А что это про сетевые интерфейсы? Это оно про работу с ppp*? Или оно
> и с eth* тоже работает?
Вероятно, ppp и прочие "причудливые" протоколы. Насколько я знаю,
eth* и аналогов в Линуксе нет. Впрочем, это у матерых системных
администраторов надо спрашивать, я тут не в курсе.
> As part of the hotplug subsystem, udev is executed if a
> kernel device is added or removed from the system. On device
Ну, теперь это более не единственный способ, но это не очень важно в
данном контексте.
> creation, udev reads the sysfs directory of the given device to
> collect device attributes like label, serial number or bus device
> number. These attributes may be used as keys to determine a
> unique name for the device. udev main tains a database for devices
> present on the system.
> А serial number or bus device number это по-русски, что в данном
> случае будет? Номер последовательного порта и идентификатор
> устройства на шине?
Нет serial number - это серийный номер. Уникальная метка устройства.
Присутствует (в случае USB flash накопителей) однако, не везде.
Всегда присутствует VendorId и ProductId.
bus device number - номер устройства на шине. Сейчас я воткнул
флэшку в USB-разъем в кард-ридере, она получила адрес
pci0000:00/0000:00:11.4/usb3/3-2/3-2:1.0
воткну в другой USB-разъем, и адрес будет другой.
> On device removal, udev queries its database for the name of
> the device file to be deleted.
Ну, натурально, так и делает.
P.S. Академический подход рулит :-). Удачи в изучении :-). Серьезно :-)
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-03-16 7:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-15 17:04 [sisyphus] udev Andriy Dobrovol's'kii
2005-03-16 7:05 ` Alexey Morozov
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git