I created two test loadable modules in my build environment for a SM-N900P with Snapdragon 8974 chip. I have used some previous images to successfully flash my phone; so I know my images work. When I try to activate the modules with insmod, I can activate one my modules and I can activate the scsi_wait_... module. But I can not load the last one. I get the following error message:
How can I get more information about this error please? Is there a log or a specific level I need to look into? I just do not see anything in logcat. What I did way to issue logcat -d > logfile.txt while my phone was connected. I opened the file but I do not see any reference to a loadable module failure. I also found the /d directory and checked some of the files, but again I do know what each of these files contain. I can guess from the name in some cases, but I like to be sure. Also I did not find anything which seemed to provide more information about why my device driver is failing. I really appreciate any help in this area.
Code:
insmod /lib/modules/tbt.ko
insmod: init_module '/lib/modules/tbt.ko' failed (Device or resource busy)