how to cause insmod to return an error?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hello,

i noticed that even though a module's probe function
returns an error insmod will still load it and will only
print a message to /var/log/messages

i need a way to prevent the module loading inside the
probe function and cause insmod return an error value
that i can use later in a shell script. any ideas?

modprobe i guess should be smarter about these things
but the module has to be in a special directory, and i need
something that can load any module from any arbitrary
directory without much setup.

any help would be appreciated.

-- ilya

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux