LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 08-01-2010, 09:45 PM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Rep: Reputation: 83
How could I implement a device that is in fact a program that reads from other devs?


Hi!

The question came to my head like a truck when I was reading about FUSE. Suppose that because of a special need (say, to solve a very particular RAID problem) you have to read from many devices separate devices and make it look like a single one. Is that even possible? It sounds very much like a device driver to me, perhaps... but getting my hands dirty with kernel code sounds like a daunting task for me that I've never done it... but would like to read your feedback before I even think of throwing my first line of code.

Thanks in advance.

Last edited by eantoranz; 08-01-2010 at 09:53 PM. Reason: make it clearer
 
Old 08-02-2010, 05:16 AM   #2
jf.argentino
Member
 
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 492

Rep: Reputation: 50
doing this kind of stuff inside or outside the kernel depends on many considerations like performance needed, is special hardware used etc... Another consideration is the policies / means: in an ideal world drivers only provide means for user space applications / libraries policies. My opinion for this kind of problem is to do all that can be in user space, and developing kernel space code only when necessary.

Quote:
but getting my hands dirty with kernel code sounds like a daunting task for me that I've never done it
It depends on the kind of driver you want to write, but thanks to the well done kernel API, it's often not so difficult, see one of the best reference to start with there.

It's difficult to help you more without more specific details on what kind of driver you need.
 
Old 08-02-2010, 10:06 AM   #3
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Original Poster
Rep: Reputation: 83
I'll take a look at the material, man. Thanks.
 
  


Reply

Tags
devices, linux


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
program vol_id reads sectors at end of media Skaperen Ubuntu 0 07-17-2009 12:21 AM
how to implement asynchronous I/O for a char device driver ? tanniru Linux - Kernel 1 02-03-2009 10:15 AM
A way to track reads and rights to a device? lumix Linux - Hardware 1 10-30-2008 10:44 AM
What's the best way to implement device discovery with IP billf Linux - Server 1 09-29-2006 07:42 AM
what files a program reads Y0jiMb0 Linux - Software 4 08-04-2005 06:05 PM


All times are GMT -5. The time now is 11:46 AM.

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