<?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のトピックRe: How to detect sd card insert/removal in user space code</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-detect-sd-card-insert-removal-in-user-space-code/m-p/1230173#M169417</link>
    <description>&lt;P&gt;I can suggest to grep /var/log/messages for messages related to SD card.&lt;BR /&gt;I mean something like this: &lt;BR /&gt;[ 542.576330] mmc1: card 59b4 removed&lt;BR /&gt;and this:&lt;BR /&gt;[ 570.761873] mmc1: new high speed SDHC card at address 59b4&lt;/P&gt;</description>
    <pubDate>Fri, 12 Feb 2021 04:54:55 GMT</pubDate>
    <dc:creator>b36401</dc:creator>
    <dc:date>2021-02-12T04:54:55Z</dc:date>
    <item>
      <title>How to detect sd card insert/removal in user space code</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-detect-sd-card-insert-removal-in-user-space-code/m-p/1229683#M169362</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; We are using imx8m mini evk board.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SD card auto mounting is working fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; But we want user space code detect to detect sd card insertion and removal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ubuntu i have tried netlink(libnl) suite &lt;A href="https://www.infradead.org/~tgr/libnl/doc/core.html" target="_blank"&gt;https://www.infradead.org/~tgr/libnl/doc/core.html&lt;/A&gt; but not able to find proper apis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please help us solve the issue.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Vasu&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 06:57:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-detect-sd-card-insert-removal-in-user-space-code/m-p/1229683#M169362</guid>
      <dc:creator>Dhevan</dc:creator>
      <dc:date>2021-02-11T06:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect sd card insert/removal in user space code</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-detect-sd-card-insert-removal-in-user-space-code/m-p/1230173#M169417</link>
      <description>&lt;P&gt;I can suggest to grep /var/log/messages for messages related to SD card.&lt;BR /&gt;I mean something like this: &lt;BR /&gt;[ 542.576330] mmc1: card 59b4 removed&lt;BR /&gt;and this:&lt;BR /&gt;[ 570.761873] mmc1: new high speed SDHC card at address 59b4&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 04:54:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-detect-sd-card-insert-removal-in-user-space-code/m-p/1230173#M169417</guid>
      <dc:creator>b36401</dc:creator>
      <dc:date>2021-02-12T04:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect sd card insert/removal in user space code</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-detect-sd-card-insert-removal-in-user-space-code/m-p/1237692#M170133</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/59975"&gt;@b36401&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; We want to detect user space c/c++ code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Do you have any suggestion detecting in user space c/c++ code ?&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Vasu&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 05:12:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-detect-sd-card-insert-removal-in-user-space-code/m-p/1237692#M170133</guid>
      <dc:creator>Dhevan</dc:creator>
      <dc:date>2021-03-01T05:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect sd card insert/removal in user space code</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-detect-sd-card-insert-removal-in-user-space-code/m-p/1242914#M170602</link>
      <description>&lt;P&gt;Another way (that may be more useful for C code) is to check if /dev/mmcblk1 appears.&lt;BR /&gt;I mean that the code may periodically check /dev/mmcblk1 filesystem entry for existing.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 04:42:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-detect-sd-card-insert-removal-in-user-space-code/m-p/1242914#M170602</guid>
      <dc:creator>b36401</dc:creator>
      <dc:date>2021-03-10T04:42:35Z</dc:date>
    </item>
  </channel>
</rss>

