LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 08:45 PM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
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 08:53 PM. Reason: make it clearer
 
Old 08-02-2010, 04:16 AM   #2
jf.argentino
Member
 
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 493

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, 09:06 AM   #3
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

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


Reply

Tags
devices, linux



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:36 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