I have done register, unregister the character driver successfully and also open & release the character driver successfully. In this i am facing the problem regarding to container_of().
local_scull_dev_ptr=container_of(pointer,container type,cdev); anyone plz tell me the internal functioning of the this macro… 1.what i mean to say is- how the control moves… 2.we directly take the third argument as ‘cdev’… but we know cdev resides in struct scull_dev so … Continue reading
i have successfully registered the multipal devices with a driver .if anybody want to take help for it by using for loop or by call a function …..most welcome.
i have completed my registration &unregistration of multiple devices with the use of a fun scull_setup_cdev…….
1.sir i have successfully register and unregister multiple devices ,,,,,,,,with simple using and with scull_setup function. 2.and also done open and release function.
Could any body try his guts to tell me the algorithm of character driver and the meaning of each function…………….like init,alloc,add etc. My knowledge base about char driver upto registration, of module in 2.6.x kernel