{"provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/hiboma/","type":"rich","width":"100%","url":"https://hiboma.hatenadiary.jp/entry/2016/11/25/125004","categories":[],"author_name":"hiboma","title":"__GFP_ZERO \u3068 0 \u521d\u671f\u5316","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhiboma.hatenadiary.jp%2Fentry%2F2016%2F11%2F25%2F125004\" title=\"__GFP_ZERO \u3068 0 \u521d\u671f\u5316 - hiboma\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","image_url":null,"blog_title":"hiboma\u306e\u65e5\u8a18","published":"2016-11-25 12:50:04","version":"1.0","blog_url":"https://hiboma.hatenadiary.jp/","provider_url":"https://hatena.blog","description":"kvm \u306e\u30bd\u30fc\u30b9\u3092\u8aad\u3093\u3067\u305f\u3089 kvm_kvzalloc() \u306a\u308b\u95a2\u6570\u304c\u51fa\u3066\u304d\u305f /* * Avoid using vmalloc for a small buffer. * Should not be used when the size is statically known. */ void *kvm_kvzalloc(unsigned long size) { if (size > PAGE_SIZE) return vzalloc(size); else return kzalloc(size, GFP_KERNEL); } \u5272\u308a\u5f53\u3066\u305f\u3044\u30b5\u30a4\u30ba\u306b\u3088\u3063\u3066 vzalloc() \u3068 kzal\u2026"}