local_dev=container_of(inode->i_cdev, struct scull_dev,cdev1);
in above function, i don’t know how container_of() give the minor number and also how assign global device to local device.
local_dev=container_of(inode->i_cdev, struct scull_dev,cdev1);
in above function, i don’t know how container_of() give the minor number and also how assign global device to local device.
EmbLogic Research & Competency Development Labs
Phone: +91 9818467776, 8527567776, 9650467776
Email: info@emblogic.com
Copyright © EmbLogic Embedded Technologies Pvt. Ltd.
it dosnt give minor no. it returns the pointer which contains the cdev structure if cdev is the last (3rd) argument
it dosnt give minor no. it returns the pointer of the structure(scull_dev) which contains the cdev structure if cdev is the last (3rd) argument.