i'm trying to modify one of the built-in kernel module 'virtio'.
I tried to find the module installed at the kernel binaries, but failed.
I found virtio is a built-in kernel module, by modprobe virtio
And, i also found non-builtin kernel module can be replaced by modified one after compiling it individually.
but how about built-ins?
when i type cat /lib/modules/$(uname -r)/modules.builtin | grep virtio
, it shows like
...
kernel/drivers/virtio/virtio.ko
...
but could not find the actual .ko file in my current OS filesystem.
Back to my question, is there any way to compile only a this built-in module and apply to the revision at the current kernel?
modify virtio.c, compile the whole kernel (
make -j8 && make modules && make modules_install && make install
)modify virtio.c, compile only this one (
make drivers/virtio/virtio.ko && make modules ...
)