{"published":"2018-01-10 23:44:25","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/719640/1514202348571315","type":"rich","categories":["kernel","linux"],"blog_url":"https://kernhack.hatenablog.com/","title":"Linux\u306e/proc/cpuinfo\u3067flags\u3092\u8868\u793a\u3057\u3066\u3044\u308b\u3068\u3053\u308d\u306e\u4ed5\u7d44\u307f\u3081\u3082","width":"100%","blog_title":"\u03c6(\u30fb\u30fb*)\u309e \uff73\uff70\uff9d\u3000\u30ab\u30fc\u30cd\u30eb\u3068\u304b\u5f04\u3063\u305f\u308a\u306e\u30e1\u30e2","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkernhack.hatenablog.com%2Fentry%2F2018%2F01%2F10%2F234425\" title=\"Linux\u306e/proc/cpuinfo\u3067flags\u3092\u8868\u793a\u3057\u3066\u3044\u308b\u3068\u3053\u308d\u306e\u4ed5\u7d44\u307f\u3081\u3082 - \u03c6(\u30fb\u30fb*)\u309e \uff73\uff70\uff9d\u3000\u30ab\u30fc\u30cd\u30eb\u3068\u304b\u5f04\u3063\u305f\u308a\u306e\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","author_name":"masami256","url":"https://kernhack.hatenablog.com/entry/2018/01/10/234425","author_url":"https://blog.hatena.ne.jp/masami256/","version":"1.0","provider_url":"https://hatena.blog","description":"/proc/cpuinfo\u3067cpu\u306e\u6a5f\u80fd\u3092\u8868\u793a\u3059\u308bflags\u306e\u3068\u3053\u308d\u3063\u3066\u3069\u3046\u3084\u3063\u3066\u540d\u79f0\u8a2d\u5b9a\u3057\u3066\u3093\u3060\u308d\uff1f\u3068\u601d\u3063\u305f\u306e\u3067\u8abf\u3079\u3066\u307f\u305f\u30e1\u30e2\u3067\u3059\u3002\u8abf\u3079\u305f\u30ab\u30fc\u30cd\u30eb\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306fv4.14.12\u3067\u3059\u3002 \u2193\u3053\u308c\u3067\u3059\u306d /proc/cpuinfo\u306eopen\u51e6\u7406 \u3053\u308c\u306ffs/proc/cpuinfo.c\u306b\u3042\u308bcpuinfo_open()\u304c\u62c5\u5f53\u3057\u307e\u3059\u3002\u3068\u8a00\u3063\u3066\u3082\u3001\u5b9f\u969b\u306e\u51e6\u7406\u306fseq_operations\u69cb\u9020\u4f53\u306ecpuinfo_op\u306b\u95a2\u6570\u304c\u30bb\u30c3\u30c8\u3055\u308c\u3066\u3044\u3066\u3001\u305d\u308c\u3089\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002 extern const struct seq_operations cpuinfo_op; static int cpuinfo_open\u2026","height":"190"}