<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>masami256</author_name>
  <author_url>https://blog.hatena.ne.jp/masami256/</author_url>
  <blog_title>φ(・・*)ゞ ｳｰﾝ　カーネルとか弄ったりのメモ</blog_title>
  <blog_url>https://kernhack.hatenablog.com/</blog_url>
  <categories>
    <anon>linux</anon>
  </categories>
  <description>所用でどんな感じで処理をしているのかを追いかけたのでメもです。たとえば、kernel/sched.cのnr_iowait_cpu()ですが、this_rq()でcpuごとのランキューのデータを取得できます。 unsigned long nr_iowait_cpu(void) { struct rq *this = this_rq(); このthis_rq()は関数ではなくて、マクロです。kernel/sched.cの659行目で定義してます。 #define this_rq() (&amp;__get_cpu_var(runqueues)) ここで出てくる__get_cpu_varも関数ではなくてマク…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkernhack.hatenablog.com%2Fentry%2F20100511%2F1273584135&quot; title=&quot;this_rq() - φ(・・*)ゞ ｳｰﾝ　カーネルとか弄ったりのメモ&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>2010-05-11 22:22:15</published>
  <title>this_rq()</title>
  <type>rich</type>
  <url>https://kernhack.hatenablog.com/entry/20100511/1273584135</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
