<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: iMX8 ioctl documentation in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX8-ioctl-documentation/m-p/1399107#M185787</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;You'll find the kernel documentation available here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/Documentation?h=lf-5.10.y" target="_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/Documentation?h=lf-5.10.y&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;For the example of the watchdog, you'll find it there as well:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/Documentation/watchdog?h=lf-5.10.y" target="_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/Documentation/watchdog?h=lf-5.10.y&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Aldo.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jan 2022 22:02:31 GMT</pubDate>
    <dc:creator>AldoG</dc:creator>
    <dc:date>2022-01-13T22:02:31Z</dc:date>
    <item>
      <title>iMX8 ioctl documentation</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8-ioctl-documentation/m-p/1398974#M185777</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Hello, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I'm looking for documents where are present a full description of the ioctls. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;If I setup a &lt;/SPAN&gt;&lt;/SPAN&gt;Yocto&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; 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 : &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;1) Open the device (e.g. mydevice): &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fd = open("/dev/mydevice", O_RDWR); &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;2) write\read data from driver using ioctl interface ad fd file descriptor : &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ioctl(fd, WR_VALUE, (int32_t*)&amp;amp;number)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;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). &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;1) In this document I expected to found the default path where the device is allocated (7dev/mydevice)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;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 &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I can found the document in nxp website. Are present in nxp website also user space code example? Thanks&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 13 Jan 2022 15:58:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8-ioctl-documentation/m-p/1398974#M185777</guid>
      <dc:creator>Ratataplam</dc:creator>
      <dc:date>2022-01-13T15:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8 ioctl documentation</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8-ioctl-documentation/m-p/1399107#M185787</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;You'll find the kernel documentation available here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/Documentation?h=lf-5.10.y" target="_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/Documentation?h=lf-5.10.y&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;For the example of the watchdog, you'll find it there as well:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/Documentation/watchdog?h=lf-5.10.y" target="_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/Documentation/watchdog?h=lf-5.10.y&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Aldo.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 22:02:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8-ioctl-documentation/m-p/1399107#M185787</guid>
      <dc:creator>AldoG</dc:creator>
      <dc:date>2022-01-13T22:02:31Z</dc:date>
    </item>
  </channel>
</rss>

