LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 01-30-2012, 12:02 PM   #1
abhikohokade
LQ Newbie
 
Registered: Sep 2011
Posts: 28

Rep: Reputation: Disabled
device handling using device files


hello,
I am trying to access devices using device files from /dev directory.

after opening file using open() system call I want to give command to that device for which device file is associated.

suppose i want to start web cam of my laptop which content I should write into the device file "/dev/input/event9" is the file associated with webcam.

or suppose i want to access the content of the hard disk from file /dev/sda how i can read this file using read() system call.
if you know any example regarding to this please send it to me.

Thank you....
 
Old 02-05-2012, 12:57 AM   #2
kareempharmacist
Member
 
Registered: Jan 2012
Location: Cairo Egypt
Distribution: CrunchBang,Linux Mint,Slackopuppy
Posts: 269

Rep: Reputation: 18
check this out
tldp.org/LDP/lkmpg/2.6/lkmpg.pdf

http://lwn.net/Kernel/LDD3/

http://ifile.it/yz8ifo/__Advanced_Linux_Programming.pdf
 
Old 02-05-2012, 01:05 AM   #3
kareempharmacist
Member
 
Registered: Jan 2012
Location: Cairo Egypt
Distribution: CrunchBang,Linux Mint,Slackopuppy
Posts: 269

Rep: Reputation: 18
this also
http://ifile.it/xelpbv/__Beginning_L...rogramming.pdf
http://ifile.it/z6x1q9/__The_Linux_P...g_Handbook.pdf
good luck
 
Old 02-05-2012, 01:06 AM   #4
kareempharmacist
Member
 
Registered: Jan 2012
Location: Cairo Egypt
Distribution: CrunchBang,Linux Mint,Slackopuppy
Posts: 269

Rep: Reputation: 18
check this out
http://ifile.it/hsjxrl/__Linux_Progr...by_Example.pdf
 
Old 06-22-2012, 03:02 AM   #5
abhikohokade
LQ Newbie
 
Registered: Sep 2011
Posts: 28

Original Poster
Rep: Reputation: Disabled
device files

What should be written in device file to get work done from that particular device using system call such as read and write????
 
  


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
Mounting encrypted LVM - Device /dev/.../lv_home is not a valid LUKS device. recarv Linux - Hardware 3 02-15-2011 03:38 PM
Wanted capture device for VCR device with Audio and Video outs only k_graham Linux - Newbie 2 06-19-2009 12:24 AM
mkrescue Fatal: device-mapper: only linear boot device supported Molly Slackware 5 01-06-2009 05:35 PM
device mapper / multipath creating extra device, won't let me talk to the one i want chakkerz Linux - Server 1 03-16-2008 06:52 PM
how i can findout corresponding device files for a device in RHL bluetux Linux - General 3 11-04-2006 07:53 AM


All times are GMT -5. The time now is 08: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration