<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cupnes</author_name>
  <author_url>https://blog.hatena.ne.jp/cupnes/</author_url>
  <blog_title>へにゃぺんて＠日々勉強のまとめ</blog_title>
  <blog_url>https://yohgami.hateblo.jp/</blog_url>
  <categories>
    <anon>Linux</anon>
    <anon>デバイスドライバ</anon>
  </categories>
  <description>これまで、キャラクタデバイスドライバのwrite(デバイスファイルに対して書き込みを行うタイプのもの)しか試していませんでした。 今更ですが、readについて、デバイスファイルを読み出すと「Hello」を返すものを作成しました。「copy_to_user()」の使い方の備忘録などの為にメモしておきます。 作成したファイル chardevtest.c #include &lt;linux/init.h&gt; #include &lt;linux/module.h&gt; #include &lt;linux/ioport.h&gt; #include &lt;linux/io.h&gt; #include &lt;linux/uaccess.h&gt;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohgami.hateblo.jp%2Fentry%2F20130106%2F1357487620&quot; title=&quot;キャラクタデバイスドライバのreadについての実験 - へにゃぺんて＠日々勉強のまとめ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-01-06 00:53:40</published>
  <title>キャラクタデバイスドライバのreadについての実験</title>
  <type>rich</type>
  <url>https://yohgami.hateblo.jp/entry/20130106/1357487620</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
