LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 09-15-2006, 01:07 AM   #1
codenaive
LQ Newbie
 
Registered: May 2006
Posts: 3

Rep: Reputation: 0
Character driver module: device or resource busy


Hi,
I am new to writing modules. i have written a simple module for character device. But when i am trying to insert the module (insmod) its giving an error:
init_module:device or resource busy.
This is my init_module:

int init_module(void)
{
int result;
// registering the device
printk("<0>init_module");
result = register_chrdev(major,DEVICE_NAME,&fops);
if(result < 0)
{
printk("<0>chardev: cannot obtain major number %d\n", major);
return result;
}
}

Please help me with this problem.
 
  


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
Device or resource busy error obulpathi Linux - Laptop and Netbook 1 01-20-2006 04:03 AM
Device or Resource Busy ..by what xrado Linux - General 1 04-23-2005 06:05 AM
Device or resource busy mikedurant Linux - Newbie 4 03-29-2005 07:52 PM
Device or Resource Busy deepfrybonanza Linux - Wireless Networking 1 02-18-2005 03:27 PM
Device or resource busy teeno Linux - Newbie 3 03-09-2004 10:12 AM


All times are GMT -5. The time now is 04:47 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration