Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-24-2003, 12:52 PM   #1
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:

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?

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

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

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


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:55 AM.

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