iMX8 ioctl documentation

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMX8 ioctl documentation

Jump to solution
839 Views
Ratataplam
Contributor II

Hello,

I'm looking for documents where are present a full description of the ioctls.

If I setup a Yocto environment using the NXP guide I suppose to found also some driver and to use them is necessary understand how use the ioctl. To better explain,in Linux user space when I use a driver I must perform two basic operation :

1) Open the device (e.g. mydevice):

 

fd = open("/dev/mydevice", O_RDWR); 

 

2) write\read data from driver using ioctl interface ad fd file descriptor :

 

ioctl(fd, WR_VALUE, (int32_t*)&number)

 

 so I need a documentation or a repository in website where I can found a user guide\manual where the ioctl usage is described for the driver delivered by NXP (e.g. watchdog handling, I suppose).

1) In this document I expected to found the default path where the device is allocated (7dev/mydevice)

2) The parameter used in ioctl (e.g. WR_VALUE) The IMX_REFERENCE_MANUAL (document identifier: IMXLXRM) there are not a full description of ioctl and at pag 66 there is a reference about the watchdog ioctl but is not clear where

I can found the document in nxp website. Are present in nxp website also user space code example? Thanks

0 Kudos
1 Solution
829 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

You'll find the kernel documentation available here:

https://source.codeaurora.org/external/imx/linux-imx/tree/Documentation?h=lf-5.10.y

For the example of the watchdog, you'll find it there as well:

https://source.codeaurora.org/external/imx/linux-imx/tree/Documentation/watchdog?h=lf-5.10.y

Best regards,
Aldo.

View solution in original post

1 Reply
830 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

You'll find the kernel documentation available here:

https://source.codeaurora.org/external/imx/linux-imx/tree/Documentation?h=lf-5.10.y

For the example of the watchdog, you'll find it there as well:

https://source.codeaurora.org/external/imx/linux-imx/tree/Documentation/watchdog?h=lf-5.10.y

Best regards,
Aldo.