Unix & Linux: What is the difference between kernel drivers and kernel modules? (6 Solutions!!)
Unix & Linux: What is the difference between kernel drivers and kernel modules?
The Question: When I do a lspci -k on my Kubuntu with a 3.2.0-29-generic kernel I can see
something like this:
01:00.0 VGA compatible controller: NVIDIA Corporation G86 [Quadro NVS 290] (rev
a1)
Subsystem: NVIDIA Corporation Device 0492
Kernel driver in use: nvidia
Kernel modules: nvidia_current, nouveau, nvidiafb
There is a kernel driver nvidia and kernel modules nvidia_current, nouveau,
nvidiafb.
Now I wondered what might be the difference between Kernel drivers and Kernel
modules?
Solutions: Please watch the whole video to see all solutions, in order of how many people found them helpful
All Drivers are modules. Not all modules are drivers.
Modules can be inserted at runtime. Modules/Drivers can be statically compiled
along with the kernel also.
Typical module init has
module_init(init_fn);
init_fn()
{
/* some code */
}
The same module can be made a driver
module_init(init_fn);
init_fn()
{
device_register(&device);
/* some code */
}
== This solution helped 20 people ==
To answer your specific question about the lspci output, the "kernel driver"
line refers to which driver is currently bound to the card, in this case the
proprietary nvidia driver. The "kernel modules" line lists all of the drivers
known to be capable of binding to this card. Here, the proprietary driver shows
up it a different name, probably due to how lspci found the driver and its
filename versus the name coded into the driver itself.
With thanks & praise to God, and with thanks to the many people who have made this project possible! | Content (except music & images) licensed under cc by-sa 3.0 | Music: https://www.bensound.com/royalty-free-music | Images: https://stocksnap.io/license & others | With thanks to user Warren Young (https://unix.stackexchange.com/users/138), user user1847726 (https://unix.stackexchange.com/users/45669), user Prabagaran (https://unix.stackexchange.com/users/22949), user paintbox (https://unix.stackexchange.com/users/22735), user Miles Rout (https://unix.stackexchange.com/users/66831), user JohnnyFromBF (https://unix.stackexchange.com/users/17859), user Jim Paris (https://unix.stackexchange.com/users/21804), user G-Man Says 'Reinstate Monica' (https://unix.stackexchange.com/users/80216), user Ciro Santilli ????????????? (https://unix.stackexchange.com/users/32558), and the Stack Exchange Network (http://unix.stackexchange.com/questions/47208). Trademarks are property of their respective owners. Disclaimer: All information is provided "AS IS" without warranty of any kind. You are responsible for your own actions. Please contact me if anything is amiss at Roel D.OT VandePaar A.T gmail.com.
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Unix & Linux: What is the difference between kernel drivers and kernel modules? (6 Solutions!!)», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.