<?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>i.MX ProcessorsのトピックUserspace notification</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Userspace-notification/m-p/826210#M127045</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm working with imx6ull board. Currently, I'm developing a device driver for an SPI device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my driver, I'm using a GPIO interrupt. The interrupt is very fast and occurs at every 5ms. I would like to notify userspace application regarding this interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Please suggest a suitable method for this type of notification(fast and efficient).&lt;/LI&gt;&lt;LI&gt;Whether asynchronous notification is a good solution?&lt;/LI&gt;&lt;LI&gt;Is there any way to enable or disable interrupts from userspace?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regrads&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jul 2018 09:32:44 GMT</pubDate>
    <dc:creator>mathew_k_t</dc:creator>
    <dc:date>2018-07-18T09:32:44Z</dc:date>
    <item>
      <title>Userspace notification</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Userspace-notification/m-p/826210#M127045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm working with imx6ull board. Currently, I'm developing a device driver for an SPI device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my driver, I'm using a GPIO interrupt. The interrupt is very fast and occurs at every 5ms. I would like to notify userspace application regarding this interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Please suggest a suitable method for this type of notification(fast and efficient).&lt;/LI&gt;&lt;LI&gt;Whether asynchronous notification is a good solution?&lt;/LI&gt;&lt;LI&gt;Is there any way to enable or disable interrupts from userspace?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regrads&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 09:32:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Userspace-notification/m-p/826210#M127045</guid>
      <dc:creator>mathew_k_t</dc:creator>
      <dc:date>2018-07-18T09:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Userspace notification</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Userspace-notification/m-p/826211#M127046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mathew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are many approaches, I think the easiest one would be to create an input to a file created in some path inside /sys/... Then you will be able to read this file in user space, you would need to have a thread polling this flag. The problem here is that the time it may took to read the flag wont be always the same. In this case I would suggest to use an RTOS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could consider i.MX6SX or i.MX7D wich have a M4 core that can run a RTOS. You can download FreeRTOS BSP for i.MX6SX and i.MX7D from our web page.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Carlos&lt;BR /&gt;NXP Technical Support&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2018 18:16:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Userspace-notification/m-p/826211#M127046</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2018-07-31T18:16:00Z</dc:date>
    </item>
  </channel>
</rss>

