View the Most Wanted LQ Wiki articles.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 03-12-2011, 09:01 AM   #1
Registered: Jul 2010
Location: Skynet
Distribution: Debian + Emacs
Posts: 467
Blog Entries: 60

Rep: Reputation: 51
How to create my own virtual device?

I want to try to create my own virtual device in Linux. Something simple, for example, a /dev/fortune virtual device that returns a line from fortune() each time you read from it. Could someone please point me in the right direction?

I am willing to do my own research and study, I just need to know where to start. E.g., what to read or what to google, in order to get me where I want to go the fastest. I have some C/C++ and Ruby background.
Old 03-12-2011, 09:29 AM   #2
LQ Newbie
Registered: Mar 2011
Posts: 7

Rep: Reputation: 0

how to create character device driver on linux

and read LDD
Old 03-12-2011, 09:36 AM   #3
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 13,841

Rep: Reputation: 1453Reputation: 1453Reputation: 1453Reputation: 1453Reputation: 1453Reputation: 1453Reputation: 1453Reputation: 1453Reputation: 1453Reputation: 1453
Originally Posted by hydraMax View Post
I want to try to create my own virtual device in Linux. Something simple ...
You wish. Nothing is ever "simple" when playing in kernel-space.
Linux Device Drivers is a good start - try here for a link from the author to download the book. Well worth buying IMHO.


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
Is it possible to create a virtual LAN on my machine using virtual box or MS virtula nhammoud Linux - Networking 1 01-27-2011 04:49 PM
how to create a Virtual Printer? fachamix Programming 1 02-10-2010 11:58 AM
lm-sensors acpitz-virtual-0 Adapter: Virtual device temp1: <- What is it? Maintech Linux - Hardware 9 08-24-2009 03:35 PM
can I create a virtual device that.... 0xdefec8 Linux - Server 1 08-26-2008 12:08 PM
What software can be used to create Virtual CD ? futurist Linux - Software 16 07-06-2003 11:12 AM

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