LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-24-2003, 12:52 PM   #1
fbarre
LQ Newbie
 
Registered: Aug 2003
Location: California
Distribution: RedHat
Posts: 28

Rep: Reputation: 15
Question Help me understand this Driver code!


Thanks for checking my posting. I'm busy learning Linux device drivers and I was going over this sample code:

http://nexus.cs.usfca.edu/~cruse/cs635/led.c

I pretty much understood it but the only question I have is how can I write a value to the device-node '/dev/led' to test it?

I mean, is there a specific command for writing values to writable device files in /dev/ or should I just use vi?

thanks,
 
Old 09-24-2003, 05:39 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,569

Rep: Reputation: 171Reputation: 171
Use
echo value >/dev/led
 
Old 09-24-2003, 06:10 PM   #3
fbarre
LQ Newbie
 
Registered: Aug 2003
Location: California
Distribution: RedHat
Posts: 28

Original Poster
Rep: Reputation: 15
Mara.. Gracias!
 
  


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 driver code ar1 Programming 2 05-13-2005 09:20 AM
help to understand this code cranium2004 Programming 1 03-21-2005 12:35 PM
fat fs code difficult to understand ramya272 Programming 7 03-07-2004 01:43 AM
Help me understand this Driver code! fbarre Linux - General 2 09-24-2003 01:51 PM
ps2 driver code for SA1111 vijaykumar_gn Linux - Software 0 08-21-2003 12:21 AM


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