help me -> c++ and linux in controlling hardware devices
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
help me -> c++ and linux in controlling hardware devices
after 5 days of self-study in using linux, i can say that i have improved for about 50%, specially with the command line and the bash scripting(thanks to linuxquestions.org, where i got a big help to mods and fellow members)...now,im almost ready to learn c++ using linux as my environment...and my training starts today...part of my c++ training is to be able to control hardware devices(specifically dvd-rom, hard disk)..sadly, i am not yet familiar on how to control these hardware in the command line interface/bash scripting...do anybody here knows a tutorial that i could use for my training...before diving to c++ language, i want my self to be armed ultimately with linux commands...im planning to start first in creating a script that will control the dvd-rom to open and close(since linux treats hardware devices as files)...it would be of good help if you can post tutorials or sample commands/scripts for my reference...help! lol...im half there dude, thank you to everyone here...
I don't want to discourage you, but "5 days of self-study on Linux" is probably not the halfway point to writing device drivers in C++....
Do you already have some programming skills? What languages do you already know?
I am currently working my way thru "Beginning Linux Programming" from Wrox. There is a chapter on device drivers. Another popular book is "Linux Device Drivers" by Greg Kroah-Hartman. Both of these--and others--should be on Amazon.
hehe..maybe 10%...i have to learn a lot from linux, i think..im a java programmer..and it's my first time to handle both linux and c++ programming..what about the net, is there any online tutorial? iv'e been googling around and i get no good response..
There are lots of tutorials and such here: CProgramming. I have been using the site quite a bit. Not sure if it has what you are looking for but it is a place to start.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.