LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help me understand this Driver code! (https://www.linuxquestions.org/questions/linux-newbie-8/help-me-understand-this-driver-code-96339/)

fbarre 09-24-2003 11:52 AM

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,

Mara 09-24-2003 04:39 PM

Use
echo value >/dev/led

fbarre 09-24-2003 05:10 PM

Mara.. Gracias!


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