scull_follow pointer is defined as: dptr=scull_follow(localptr,item); here localptr is struct scull_dev pointer and item is an integer value giving us 1 less than the total number of qsets required. This is the message i get,when i comment the scull_follow pointer: … Continue reading
the prototype for container_of is as follows: container_of(pointer,container_type,container_field) so what exactly does this return? considering an example, ptr=container_of(inode->i_cdev,struct scull_dev,cdev) here the pointer ‘inode->i_cdev’ has a field cdev.’cdev’ is CONTAINED IN struct scull_dev. so ultimately,’container_of’ takes pointer ‘inode->i_cdev’ to struct scull_dev … Continue reading
structure of scull is complete.. trying to work on the function recursion part.