Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-08-2007, 04:17 AM   #1
LQ Newbie
Registered: May 2007
Posts: 3

Rep: Reputation: 0
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);

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.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
configuring vim to use ctags manish.ym Linux - Desktop 3 01-03-2010 05:31 AM
Ctags setup in vim jrdioko Programming 7 12-20-2005 06:14 PM
ctags doubt dileepkk Linux - Newbie 0 12-30-2004 05:30 AM
ctags 5.5.4 not working in kdevelop 3.0.4 tcma Linux - Software 0 08-12-2004 02:42 PM
cronjob help ./ctags.1.bz2 meeh Mandriva 0 03-26-2004 12:19 PM

All times are GMT -5. The time now is 10:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration