{"id":348,"date":"2025-11-02T21:12:45","date_gmt":"2025-11-02T13:12:45","guid":{"rendered":"https:\/\/www.garfield-blog.top\/?p=348"},"modified":"2025-12-27T16:52:00","modified_gmt":"2025-12-27T08:52:00","slug":"%e3%80%90%e7%bc%96%e7%a8%8b%e8%af%ad%e8%a8%80%e5%ad%a6%e4%b9%a0%e3%80%91%e3%80%90linux%e3%80%91%e4%be%b5%e5%85%a5%e5%bc%8f%e9%93%be%e8%a1%a8","status":"publish","type":"post","link":"https:\/\/www.garfield-blog.top\/?p=348","title":{"rendered":"\u3010Linux\u3011\u4fb5\u5165\u5f0f\u94fe\u8868"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u53c2\u8003\u6587\u6863<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/torvalds\/linux\/releases\/tag\/v5.4\">Release v5.4 \u00b7 torvalds\/linux<\/a><\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">\u6982\u8ff0<\/h2>\n\n\n\n<p>\u5e38\u89c4\u5199\u6cd5\u7684\u7ecf\u5178\u94fe\u8868\u6bcf\u4e2a\u94fe\u8868\u7684\u8282\u70b9\u5305\u542b\u6307\u9488\u90e8\u5206\u548c\u6570\u636e\u90e8\u5206\uff0c\u6bcf\u4e2a\u8282\u70b9\u7684\u6307\u9488\u662f\u4e00\u4e2a\u6307\u9488\u6307\u5411\u4e0b\u4e00\u4e2a\u8282\u70b9\u3002\u6bcf\u4e00\u4e2a\u94fe\u8868\u7684\u8282\u70b9\u7684\u5185\u5bb9\u90fd\u662f\u4e0d\u4e00\u6837\u7684\uff0c\u6bcf\u4e00\u4e2a\u94fe\u8868\u90fd\u9700\u8981\u5b9a\u4e49\u4e00\u6b21\uff0c\u5305\u62ec\u5bf9\u4e8e\u94fe\u8868\u7684\u64cd\u4f5c\u7684<code>API<\/code>\u4e5f\u9700\u8981\u91cd\u65b0\u5f00\u53d1<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.garfield-blog.top\/wp-content\/uploads\/2025\/11\/\u666e\u901a\u94fe\u8868.jpg'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"343\" height=\"154\" data-original=\"https:\/\/www.garfield-blog.top\/wp-content\/uploads\/2025\/11\/\u666e\u901a\u94fe\u8868.jpg\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-349\"  sizes=\"auto, (max-width: 343px) 100vw, 343px\" \/><\/div><\/figure>\n\n\n\n<p><code>Linux<\/code>\u4e2d\u7684\u4fb5\u5165\u5f0f\u94fe\u8868\u4e0e\u666e\u901a\u7684\u94fe\u8868\u4e0d\u540c\u7684\uff0c<code>Linux<\/code>\u63d0\u4f9b\u4e86\u4e00\u4e2a\u516c\u5171\u7684\u94fe\u8868\u5934\u7684\u7ed3\u6784\u4f53\uff0c\u5176\u4e2d\u53ea\u5305\u542b\u4e86\u5934\u6307\u9488\u548c\u5c3e\u6307\u9488<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/linux-5.4\/include\/linux\/types.h<br>struct list_head {<br> &nbsp; &nbsp;struct list_head *next, *prev;<br>};<\/pre>\n\n\n\n<p>\u5728\u5b9e\u9645\u7684\u4f7f\u7528\u662f\u8282\u70b9\u7684<code>next<\/code>\u6307\u9488\u6307\u5411\u7684\u662f\uff0c\u4e0b\u4e00\u4e2a\u94fe\u8868\u7684\u6307\u9488\u57df\u3002\u5728\u83b7\u53d6\u6bcf\u4e2a\u8282\u70b9\u4e2d\u7684\u6570\u636e\u57df\u65f6\u63d0\u4f9b\u4e86\u4e00\u5957\u516c\u5171\u7684\u94fe\u8868\u7ba1\u7406<code>API<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.garfield-blog.top\/wp-content\/uploads\/2025\/11\/\u4fb5\u5165\u5f0f\u94fe\u8868.jpg'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"343\" height=\"154\" data-original=\"https:\/\/www.garfield-blog.top\/wp-content\/uploads\/2025\/11\/\u4fb5\u5165\u5f0f\u94fe\u8868.jpg\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-350\"  sizes=\"auto, (max-width: 343px) 100vw, 343px\" \/><\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u5177\u4f53\u5e94\u7528<\/h2>\n\n\n\n<p>\u5728<code>Linux<\/code>\u5185\u6838\u4e2d\u5173\u4e8e\u4fb5\u5165\u5f0f\u94fe\u8868\u7684\u5177\u4f53\u5e94\u7528\u6709\u5f88\u591a<\/p>\n\n\n\n<p>\u6bd4\u5982\u8bf4\uff0c\u5185\u6838\u7b49\u5f85\u961f\u5217\u7684\u4e8b\u4ef6\u8282\u70b9\u7684\u5b9a\u4e49<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">struct wait_queue_entry {<br> &nbsp; &nbsp;unsigned int &nbsp; &nbsp; &nbsp; &nbsp;flags;<br> &nbsp; &nbsp;void &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*private;<br> &nbsp; &nbsp;wait_queue_func_t &nbsp; &nbsp;func;<br> &nbsp; &nbsp;struct list_head &nbsp; &nbsp;entry;<br>}<\/pre>\n\n\n\n<p>\u5728\u8bfb\u53d6\u5177\u4f53\u7684\u8282\u70b9\u7684\u5185\u5bb9\u65f6\u901a\u8fc7\u94fe\u8868\u7684\u8282\u70b9\u6307\u9488\u548c<code>container_of<\/code>\u5b8f\u6765\u53cd\u5411\u83b7\u53d6\u8282\u70b9\u7684\u5185\u5bb9<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53c2\u8003\u6587\u6863 Release v5.4 \u00b7 torvalds\/linux \u6982\u8ff0 \u5e38\u89c4\u5199\u6cd5\u7684\u7ecf\u5178\u94fe\u8868\u6bcf\u4e2a\u94fe\u8868\u7684\u8282\u70b9\u5305 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[6],"tags":[],"class_list":["post-348","post","type-post","status-publish","format-standard","hentry","category-linux-knowledge"],"_links":{"self":[{"href":"https:\/\/www.garfield-blog.top\/index.php?rest_route=\/wp\/v2\/posts\/348","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.garfield-blog.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garfield-blog.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garfield-blog.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garfield-blog.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=348"}],"version-history":[{"count":2,"href":"https:\/\/www.garfield-blog.top\/index.php?rest_route=\/wp\/v2\/posts\/348\/revisions"}],"predecessor-version":[{"id":500,"href":"https:\/\/www.garfield-blog.top\/index.php?rest_route=\/wp\/v2\/posts\/348\/revisions\/500"}],"wp:attachment":[{"href":"https:\/\/www.garfield-blog.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garfield-blog.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=348"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garfield-blog.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}