Click here to Skip to main content
15,567,448 members
Home / Discussions / Linux Programming
   

Linux Programming

 
GeneralRe: from "ls" to C++ buffer? Pin
Vaclav_15-Jan-19 10:10
Vaclav_15-Jan-19 10:10 
GeneralRe: from "ls" to C++ buffer? Pin
k505415-Jan-19 21:37
mvek505415-Jan-19 21:37 
AnswerRe: from "ls" to C++ buffer? Pin
Vaclav_15-Jan-19 15:30
Vaclav_15-Jan-19 15:30 
GeneralRe: from "ls" to C++ buffer? Pin
Richard MacCutchan15-Jan-19 22:24
mveRichard MacCutchan15-Jan-19 22:24 
GeneralRe: from "ls" to C++ buffer? Pin
Vaclav_16-Jan-19 8:05
Vaclav_16-Jan-19 8:05 
GeneralRe: from "ls" to C++ buffer? Pin
Richard MacCutchan16-Jan-19 9:20
mveRichard MacCutchan16-Jan-19 9:20 
GeneralRe: from "ls" to C++ buffer? Pin
Vaclav_16-Jan-19 16:03
Vaclav_16-Jan-19 16:03 
Questionioctl - from code to hardware Pin
Vaclav_3-Jan-19 5:41
Vaclav_3-Jan-19 5: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 7:31
mveRichard MacCutchan3-Jan-19 7:31 
GeneralRe: ioctl - from code to hardware Pin
Vaclav_3-Jan-19 12:03
Vaclav_3-Jan-19 12:03 
GeneralRe: ioctl - from code to hardware Pin
Richard MacCutchan3-Jan-19 23:11
mveRichard MacCutchan3-Jan-19 23:11 
GeneralRe: ioctl - from code to hardware Pin
Vaclav_4-Jan-19 6:36
Vaclav_4-Jan-19 6:36 
QuestionWhich is most current Linux "man" resource to consult with? Pin
Vaclav_2-Jan-19 6:36
Vaclav_2-Jan-19 6:36 
AnswerRe: Which is most current Linux "man" resource to consult with? Pin
Richard MacCutchan2-Jan-19 7:29
mveRichard MacCutchan2-Jan-19 7:29 
QuestionCoding C++ ioctl SPI_IOC_MESSAGE Pin
Vaclav_26-Dec-18 5:44
Vaclav_26-Dec-18 5:44 
GeneralRe: Coding C++ ioctl SPI_IOC_MESSAGE Pin
Richard MacCutchan26-Dec-18 8:01
mveRichard MacCutchan26-Dec-18 8:01 
GeneralRe: Coding C++ ioctl SPI_IOC_MESSAGE Pin
Vaclav_26-Dec-18 8:51
Vaclav_26-Dec-18 8:51 
GeneralRe: Coding C++ ioctl SPI_IOC_MESSAGE Pin
Richard MacCutchan26-Dec-18 23:24
mveRichard MacCutchan26-Dec-18 23:24 
QuestionAre there any Yocto masters here? Pin
Munchies_Matt6-Dec-18 4:32
Munchies_Matt6-Dec-18 4:32 
QuestionSo... Pin
Nathan Minier4-Dec-18 2:29
professionalNathan Minier4-Dec-18 2:29 
AnswerRe: So... Pin
Eddy Vluggen4-Dec-18 2:32
professionalEddy Vluggen4-Dec-18 2:32 
GeneralRe: So... Pin
Nathan Minier4-Dec-18 2:35
professionalNathan Minier4-Dec-18 2:35 
AnswerRe: So... Pin
#realJSOP7-Jan-19 2:39
mva#realJSOP7-Jan-19 2:39 
QuestionFIRST ONE! Pin
#realJSOP1-Dec-18 5:45
mva#realJSOP1-Dec-18 5:45 
QuestionRe: FIRST ONE! Pin
Eddy Vluggen3-Dec-18 11:01
professionalEddy Vluggen3-Dec-18 11: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.