pcan_usb_plugin() function is not getting called !!

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
vijayendranss
Posts: 12
Joined: Thu 10. Sep 2020, 10:25

pcan_usb_plugin() function is not getting called !!

Post by vijayendranss » Fri 11. Sep 2020, 12:07

I use peak-linux-driver-8.10.2.
I came across function

Code: Select all

pcan_usb_plugin()
I wonder from where this function is getting called.
I inserted some printk statements in this functions.
But the function start itself not getting called.

I thought below will be the function flow when insmod command is given :

Code: Select all

insmod pcan.ko								
	init_module							
		pcan_usb_register_devices						
			pcan_usb_core_init					
				pcan_usb_plugin				
					pcan_usb_create_dev			
						pcan_sysfs_dev_node_create_ex		
							device_create_drvdata	
								device_create

Till

Code: Select all

pcan_usb_core_init()
the flow is proper. After that

Code: Select all

pcan_usb_plugin()
is not getting called.
Wondeing why ?
My assumption in function flow is wrong ?
Please guide..

User avatar
S.Grosjean
Software Development
Software Development
Posts: 357
Joined: Wed 4. Jul 2012, 17:02

Re: pcan_usb_plugin() function is not getting called !!

Post by S.Grosjean » Fri 11. Sep 2020, 12:41

— Stéphane

User avatar
S.Grosjean
Software Development
Software Development
Posts: 357
Joined: Wed 4. Jul 2012, 17:02

Re: pcan_usb_plugin() function is not getting called !!

Post by S.Grosjean » Fri 11. Sep 2020, 12:55

I don't think your way of spamming the forum by opening a large number of topics at once is the best way to help you. Usually users of this forum ask one question at a time, so we can solve their problems one by one. In fact, often the resolution of the first problem miraculously leads to the resolution of the following ones.

To achieve this goal that we both share, it is necessary, however, that you read the answers that are given to you. When I say "read", I also mean understand and apply. The answers we give are intended for people who know a minimum of Linux and its use. If they are not intelligible to you, you will easily understand that we are not here to train you more in the basics of using Linux.

Finally, how do you expect me to get into a detailed description of the code of the driver you are trying to use if you don't even read the answers I gave you on how to load it correctly? For your information, this driver is used a very large number of times by many users around the world, without them having to go through this forum.
— Stéphane

vijayendranss
Posts: 12
Joined: Thu 10. Sep 2020, 10:25

Re: pcan_usb_plugin() function is not getting called !!

Post by vijayendranss » Fri 11. Sep 2020, 15:22

Understood. Sorry to trouble you. Regret and apologizes.

Post Reply