LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-08-2007, 03:17 AM   #1
pune_arun
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);
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
 
  


Reply


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 04:31 AM
Ctags setup in vim jrdioko Programming 7 12-20-2005 05:14 PM
ctags doubt dileepkk Linux - Newbie 0 12-30-2004 04:30 AM
ctags 5.5.4 not working in kdevelop 3.0.4 tcma Linux - Software 0 08-12-2004 01:42 PM
cronjob help ./ctags.1.bz2 meeh Mandriva 0 03-26-2004 11:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:16 PM.

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