{"author_url":"https://blog.hatena.ne.jp/namezoo/","title":"","height":"190","author_name":"namezoo","image_url":null,"provider_name":"Hatena Blog","published":"2009-03-18 14:43:55","type":"rich","url":"https://namezoo.hatenadiary.org/entry/20090318/1237355035","blog_url":"https://namezoo.hatenadiary.org/","categories":["C/C++","Linux"],"version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnamezoo.hatenadiary.org%2Fentry%2F20090318%2F1237355035\" title=\" - \u7530\u4e2d\u306e\u4e2d\u306e\u4eba\u306f\u3053\u3053\u306b\u9003\u3052\u3066\u304d\u305f\u3093\u3058\u3083\u308d\u304b\uff1f\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"\u7530\u4e2d\u306e\u4e2d\u306e\u4eba\u306f\u3053\u3053\u306b\u9003\u3052\u3066\u304d\u305f\u3093\u3058\u3083\u308d\u304b\uff1f","provider_url":"https://hatena.blog","width":"100%","description":"Linux\u30c9\u30e9\u30a4\u30d0\u3092\u5f04\u304f\u3063\u3066\u305f\u6642\u306b\u3075\u3068\u601d\u3063\u305f\u7591\u554f\u3002 \u30b9\u30d4\u30f3\u30ed\u30c3\u30af\u53d6\u5f97\u6642\u306bflags\u306b\u5024\u304c\u5165\u3063\u3066\u304f\u308b\u306e\u306b\u306a\u3093\u3067\u30a2\u30c9\u30ec\u30b9\u6e21\u3057\u3058\u3083\u306d\u3047\u306e\uff1f \u6c17\u306b\u306a\u3063\u305f\u306e\u3067\u7a7f\u3063\u3066\u307f\u308b\u3002Kernel\u30d0\u30fc\u30b8\u30e7\u30f3\u306f2.6.28.3\u3002 spin_lock_irqsave(spinlock_t *lock, unsigned long flags);\u3068\u601d\u3063\u305f\u3089\u30de\u30af\u30ed\u3067\u3057\u305f\u3002 do { ... } while(0)\u3067\u30bb\u30df\u30b3\u30ed\u30f3\u629c\u3051\u3092\u56de\u907f\u3057\u3066\u95a2\u6570\u3063\u307d\u304f\u3057\u3066\u3093\u306e\u306d\u3002 // include/linux/spinlock.h #define spin_lock_irqsave(lock, flags) \\ do { \\ typechec\u2026"}