Click here to Skip to main content
15,886,563 members
Home / Discussions / Linux Programming
   

Linux Programming

 
GeneralRe: from "ls" to C++ buffer? Pin
Vaclav_15-Jan-19 9:10
Vaclav_15-Jan-19 9:10 
GeneralRe: from "ls" to C++ buffer? Pin
k505415-Jan-19 20:37
mvek505415-Jan-19 20:37 
AnswerRe: from "ls" to C++ buffer? Pin
Vaclav_15-Jan-19 14:30
Vaclav_15-Jan-19 14:30 
GeneralRe: from "ls" to C++ buffer? Pin
Richard MacCutchan15-Jan-19 21:24
mveRichard MacCutchan15-Jan-19 21:24 
GeneralRe: from "ls" to C++ buffer? Pin
Vaclav_16-Jan-19 7:05
Vaclav_16-Jan-19 7:05 
GeneralRe: from "ls" to C++ buffer? Pin
Richard MacCutchan16-Jan-19 8:20
mveRichard MacCutchan16-Jan-19 8:20 
GeneralRe: from "ls" to C++ buffer? Pin
Vaclav_16-Jan-19 15:03
Vaclav_16-Jan-19 15:03 
Questionioctl - from code to hardware Pin
Vaclav_3-Jan-19 4:41
Vaclav_3-Jan-19 4:41 
There are plenty of resources about ioctl.
All of them refer to "files" which is OK.
What is missing - as far as I am concerned - is actual code where commands and data passed via ioctl function are processed.

It is very common to read " use plain write " to do the hardware manipulation.

Since "what are you trying to do" is often first reply - here is a sample.
Purpose of the code is to output data to I2C hardware:

C++
iResult = write(FileDescriptor,Data,iSize);


Works as expected.


When I get more familiar with ioctl I'll try use I2C ioctl "write macro" instead of "plain" write.


My primary question is - how to find the actual Linux code which "transfers" the write function to sending I2C clock and data. (Mrs Google - via Github - keeps giving me the "files" and not reference to actual Linux source code - perhaps I am asking wrong way - again. )

My secondary is - how to verify that my code actually reads I2C ACK when I send the I2C address.
All I am getting is "number of characters processed", which is fine, but does it "include " verifying the ACK?

Cheers
SuggestionRe: ioctl - from code to hardware Pin
Richard MacCutchan3-Jan-19 6:31
mveRichard MacCutchan3-Jan-19 6:31 
GeneralRe: ioctl - from code to hardware Pin
Vaclav_3-Jan-19 11:03
Vaclav_3-Jan-19 11:03 
GeneralRe: ioctl - from code to hardware Pin
Richard MacCutchan3-Jan-19 22:11
mveRichard MacCutchan3-Jan-19 22:11 
GeneralRe: ioctl - from code to hardware Pin
Vaclav_4-Jan-19 5:36
Vaclav_4-Jan-19 5:36 
QuestionWhich is most current Linux "man" resource to consult with? Pin
Vaclav_2-Jan-19 5:36
Vaclav_2-Jan-19 5:36 
AnswerRe: Which is most current Linux "man" resource to consult with? Pin
Richard MacCutchan2-Jan-19 6:29
mveRichard MacCutchan2-Jan-19 6:29 
QuestionCoding C++ ioctl SPI_IOC_MESSAGE Pin
Vaclav_26-Dec-18 4:44
Vaclav_26-Dec-18 4:44 
GeneralRe: Coding C++ ioctl SPI_IOC_MESSAGE Pin
Richard MacCutchan26-Dec-18 7:01
mveRichard MacCutchan26-Dec-18 7:01 
GeneralRe: Coding C++ ioctl SPI_IOC_MESSAGE Pin
Vaclav_26-Dec-18 7:51
Vaclav_26-Dec-18 7:51 
GeneralRe: Coding C++ ioctl SPI_IOC_MESSAGE Pin
Richard MacCutchan26-Dec-18 22:24
mveRichard MacCutchan26-Dec-18 22:24 
QuestionAre there any Yocto masters here? Pin
Munchies_Matt6-Dec-18 3:32
Munchies_Matt6-Dec-18 3:32 
QuestionSo... Pin
Nathan Minier4-Dec-18 1:29
professionalNathan Minier4-Dec-18 1:29 
AnswerRe: So... Pin
Eddy Vluggen4-Dec-18 1:32
professionalEddy Vluggen4-Dec-18 1:32 
GeneralRe: So... Pin
Nathan Minier4-Dec-18 1:35
professionalNathan Minier4-Dec-18 1:35 
AnswerRe: So... Pin
#realJSOP7-Jan-19 1:39
mve#realJSOP7-Jan-19 1:39 
QuestionFIRST ONE! Pin
#realJSOP1-Dec-18 4:45
mve#realJSOP1-Dec-18 4:45 
QuestionRe: FIRST ONE! Pin
Eddy Vluggen3-Dec-18 10:01
professionalEddy Vluggen3-Dec-18 10:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.