Книга: Embedded Linux Primer: A Practical, Real-World Approach

8.2.6. rmmod

8.2.6. rmmod

This utility is also quite trivial. It simply removes a module from a running kernel. Pass it the module name as a parameter. There is no need to include a pathname or file extension. For example:

$ rmmod hello1
Hello Example Exit

The only interesting point to understand here is that when you use rmmod, it executes the module's *_exit() function, as shown in the previous example, from our hello1.c example of Listings 8-1 and 8-6.

It should be noted that, unlike modprobe, rmmod does not remove dependent modules. Use modprobe -r for this.

Оглавление книги


Генерация: 0.077. Запросов К БД/Cache: 0 / 3
поделиться
Вверх Вниз