LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How can I use 'ctags' ? (https://www.linuxquestions.org/questions/linux-newbie-8/how-can-i-use-ctags-552184/)

pune_arun 05-08-2007 03:17 AM

How can I use 'ctags' ?
 
Hi friends,

How can I use ctags in linux device driver.
consider a program

1. #define DEV_NAME "TEST"
2. struct file_operations char_fops = {};
3. int major;
4. static int char_init() {
5. major = register_chrdev(0,DEV_NAME,&char_fops);
6. if(major < 0) {
7. printk(KERN_ALERT"Device registration failed\n");
8. return -ENODEV;
9. }
10. printk(KERN_ALERT, major);
11. return 0;
12. }
13. static void char_exit() {
14. int ret;
15. ret = unregister_chrdev(major, DEV_NAME);
16. if(ret < 0) {
17. printk(KERN_ALERT, ret);
18. }
19. }
20. module_init(char_init);
21. module_exit(char_exit);
22. MODULE_LICENSE("GPL");


Consider the above program, If I want to see the function 'register_chrdev' which is in header file. How can I see this.

Please give me step by step process.
Thanks in advance.

Arun


All times are GMT -5. The time now is 08:17 PM.