LinuxForum.Fans
Тема

/proc/bus/usb

Автор: Vascom 7 сообщений 2509 просмотров
#246478

Кто может сказать, почему /proc/bus/usb не смонтирована по дефолту в федоре?

#246514
"Vascom" написал:
Кто может сказать, почему /proc/bus/usb не смонтирована по дефолту в федоре?

потому что он устарел. пользуйтесь /sys/bus/usb

#246515

То есть переделывать ПО, которое использует /proc/bus/usb?

#246518
Vascom написал:
То есть переделывать ПО, которое использует /proc/bus/usb?

...или чуть пересобрать ядро с включением опции

/proc file system support (PROC_FS)
CONFIG_PROC_FS:

Показать
This is a virtual file system providing information about the status
of the system. "Virtual" means that it doesn't take up any space on
your hard disk: the files are created on the fly by the kernel when
you try to access them. Also, you cannot read the files with older
version of the program less: you need to use more or cat.

It's totally cool; for example, "cat /proc/interrupts" gives
information about what the different IRQs are used for at the moment
(there is a small number of Interrupt ReQuest lines in your computer
that are used by the attached devices to gain the CPU's attention --
often a source of trouble if two devices are mistakenly configured
to use the same IRQ). The program procinfo to display some
information about your system gathered from the /proc file system.

Before you can use the /proc file system, it has to be mounted,
meaning it has to be given a location in the directory hierarchy.
That location should be /proc. A command such as "mount -t proc proc
/proc" or the equivalent line in /etc/fstab does the job.

The /proc file system is explained in the file
<file:Documentation/filesystems/proc.txt> and on the proc(5) manpage
("man 5 proc").

This option will enlarge your kernel by about 67 KB. Several
programs depend on this, so everyone should say Y here.

Symbol: PROC_FS [=y]
Type : boolean
Prompt: /proc file system support
Defined at fs/proc/Kconfig:1
Depends on: EXPERT [=y]
Location:
-> File systems
-> Pseudo filesystems
#246520
"Vascom" написал:
То есть переделывать ПО, которое использует /proc/bus/usb?

ну или переделывать или самому монтировать (если оно ещё из ядра не выпилено)...

ИМХО ноги растут ещё из того, что lsusb сначала тыкается в /proc и только потом в /sys, а из последнего можно больше инфы набрать...
так что простому юзеру Ъ.

[added]
Lupo Alberto, не о том речь, а о CONFIG_USB_DEVICEFS.
без CONFIG_PROC_FS я ни один дистр пока не встречал...

#246523

Ясно. Всем спасибо :)

#246524
"Fat-Zer" написал:
без CONFIG_PROC_FS я ни один дистр пока не встречал...

Ну я подумал, что Fedora, как всегда, впереди планеты всей ;)

Войдите или зарегистрируйтесь, чтобы ответить.