I'm trying to understand how CAN drivers get loaded into the TI AM335x based Linux system. When I check the output of lsmod:
[root /usr]# lsmod
Module Size Used by
c_can_platform 4172 0
c_can 8180 1 c_can_platform
can_dev 6951 1 c_can
I can see the CAN drivers in the system and when I run a dmesg I can see them being loaded:
[ 3.745933] CAN device driver interface
[ 3.891592] c_can_platform 481cc000.d_can: c_can_platform device registered (regs=fa1cc000, irq=68)
but I don't know what loads them. I've noticed there's no /etc/modules or /etc/modules.conf file and I can't seem to find any "modprobe" or "insmod" calls in the /etc/init.d scripts which load the CAN drivers.
So where are these loaded? And as a general side note, is there anyway to determine what mechinsm/scripts was used to load a driver to begin with?