<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shigemk2</author_name>
  <author_url>https://blog.hatena.ne.jp/shigemk2/</author_url>
  <blog_title>by shigemk2</blog_title>
  <blog_url>https://www.shigemk2.com/</blog_url>
  <categories>
    <anon>Unix</anon>
  </categories>
  <description>端末のオープン処理を行うデバイスドライバである。 openシステムコールを発行うるとklopenが実行される。 該当端末のアドレスを算出して、tty構造体とレジスタの初期設定を行う。 klopen(dev, flag) { register char *addr; register struct tty *tp; if(dev.d_minor &gt;= NKL11+NDL11) { /* #define NKL11 1 #define NDL11 0 */ u.u_error = ENXIO; return; } tp = &amp;kl11[dev.d_minor]; if (u.u_procp-&gt;p_…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2F2014%2F07%2F26%2Fklopen%2528%2529&quot; title=&quot;klopen() - by shigemk2&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>2014-07-26 17:09:46</published>
  <title>klopen()</title>
  <type>rich</type>
  <url>https://www.shigemk2.com/entry/2014/07/26/klopen%28%29</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
