Regarding Char Drivers
I am new to device drivers. I need some help regarding how to hack the entry points of the 'st' driver dynamically. I saw that in Solaris, it is done like the one below :
/* Save the original pointers of the st driver */
= my_st_open; /* My driver function call */
I would like to know if there is any equivalent of devopsp in linux ie is there any way to retrieve the original file operations structure of the st driver dynamically and to over write with my own file operation structure.
I saw that all the registered character devices are added into an chrdevs array. As this array defined as static, I think I cant access it. Pls let me know is there is a way to access this array or the fops structure corresponding to 'st' driver can be retrieved.(I saw get_chrfops() function but again it is declared as static)