<?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>security things in Linux v4.11を読んでて参照カウンタ用のAPIが4.11に入ったとのことなので軽くめもです。 利用にはinclude/refcount.hをインクルードします。実装はlib/refcount.cです。 機能的には変数は実態はatomic_t型のrefcount_tという型が作られてます。そして、値の増減時にオーバフローとアンダフローのチェックが行われます。基本的な使い方はatomic_tと同じ感じです。わりと大きな違いとしては、atomic_t型のatomic_inc()は更新前の値が0の場合実行後は1になりますが（期待通りですね）、refcoun…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkernhack.hatenablog.com%2Fentry%2F2017%2F05%2F03%2F192550&quot; title=&quot;Linux 4.11から入った参照カウンタのAPIめも - φ(・・*)ゞ ｳｰﾝ　カーネルとか弄ったりのメモ&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>https://cdn.mogile.archive.st-hatena.com/v1/image/masami256/302457491265806682.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-05-03 19:25:50</published>
  <title>Linux 4.11から入った参照カウンタのAPIめも</title>
  <type>rich</type>
  <url>https://kernhack.hatenablog.com/entry/2017/05/03/192550</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
