On Mon, Apr 11, 2005 at 06:18:24PM +0400, Yury Aliaev wrote: > Может, заодно и выгрузкой тоже? Кстати, сейчас в списке процессов я его > не вижу (ядро 2.4.26). Кто же теперь модули за него грузит? И к чему бы > в списке модулей слово "(autoclean)"? Кстати, я как-то обращал внимание > (уже на 2.4.2х ядре), что неиспользуемые модули могут исчезать из списка > загруженных. Вдогонку. To automatically link a module, the kernel creates a kernel thread to execute the modprobe external program,[2] [2] This is one of the few examples in which the kernel relies on an external program. (c) UtLK 2nd Ed., B.4.1 The exec_modprobe( ) function, in turn, also receives the name of the module to be linked as its parameter. It invokes the execve( ) system call and executes the modprobe external program,[3] passing the module name to it. In turn, the modprobe program actually links the requested module, along with any that it depends on. [3] The name and path of the program executed by exec_modprobe( ) can be customized by writing into the /proc/sys/kernel/modprobe file. Each module automatically linked into the kernel has the MOD_AUTOCLEAN flag in the flags field of the module object set. This flag allows automatic unlinking of the module when it is no longer used. To automatically unlink the module, a system process (like crond ) periodically executes the rmmod external program, passing the -a option to it. The latter program executes the delete_module( ) system call with a NULL parameter. The corresponding service routine scans the list of module objects and removes all unused modules having the MOD_AUTOCLEAN flag set. (c) там же, B.4.2 -- WBR, wRAR (ALT Linux Team) Powered by the ALT Linux fortune(8): > > Где именно и сколько лежит граблей, мы пока не знаем. > Тогда откуда инфа, что они есть? Наверное, телепаты вышли из отпуска. -- nikon in sisyphus@