<?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>kernel</anon>
    <anon>linux</anon>
  </categories>
  <description>Namespace周りのコードを読んでいたらinodeからtask_struct構造体を取得をしているところがあって、こんなことできるんだ〜などと思ったのでどんな方法で取得するのか見てみます。 使ってた場所はproc_ns_follow_link()とかです。 ↓のように。 37 struct task_struct *task; 38 struct path ns_path; 39 void *error = ERR_PTR(-EACCES); 40 41 task = get_proc_task(inode); 関数はget_proc_task()で、fs/proc/internal.hに…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkernhack.hatenablog.com%2Fentry%2F2015%2F06%2F13%2F003928&quot; title=&quot;Linux: inodeからtask_struct構造体を取得 - φ(・・*)ゞ ｳｰﾝ　カーネルとか弄ったりのメモ&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>http://ecx.images-amazon.com/images/I/41JZU3SCDWL.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-06-13 00:39:28</published>
  <title>Linux: inodeからtask_struct構造体を取得</title>
  <type>rich</type>
  <url>https://kernhack.hatenablog.com/entry/2015/06/13/003928</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
