{"id":14262,"date":"2024-08-08T10:55:00","date_gmt":"2024-08-08T02:55:00","guid":{"rendered":"http:\/\/xinyiworld.top\/wordpress_it\/?p=14262"},"modified":"2024-08-08T13:46:15","modified_gmt":"2024-08-08T05:46:15","slug":"sys%e7%9b%ae%e5%bd%95%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"http:\/\/xinyiworld.top\/wordpress_it\/?p=14262","title":{"rendered":"sysfs\u6587\u4ef6\u7cfb\u7edf\u4ecb\u7ecd"},"content":{"rendered":"<p><a href=\"https:\/\/www.cnblogs.com\/jikexianfeng\/p\/9209663.html\">https:\/\/www.cnblogs.com\/jikexianfeng\/p\/9209663.html<\/a><\/p>\n<p><a href=\"https:\/\/www.idc.net\/help\/92439\/\">https:\/\/www.idc.net\/help\/92439\/<\/a><br \/>\n<a href=\"https:\/\/news.sohu.com\/a\/782518531_121124374\">https:\/\/news.sohu.com\/a\/782518531_121124374<\/a><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_16 counter-hierarchy counter-decimal ez-toc-grey\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\">\u76ee\u5f55<\/p>\n<span class=\"ez-toc-title-toggle\"><a class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" style=\"display: none;\"><i class=\"ez-toc-glyphicon ez-toc-icon-toggle\"><\/i><\/a><\/span><\/div>\n<nav><ul class=\"ez-toc-list ez-toc-list-level-1\"><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-1\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=14262\/#sysfs%E4%BB%8B%E7%BB%8D\" title=\"sysfs\u4ecb\u7ecd\">sysfs\u4ecb\u7ecd<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-2\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=14262\/#sys%E4%B8%8Edev%E7%9B%AE%E5%BD%95%E7%9A%84%E5%8C%BA%E5%88%AB\" title=\"\/sys\u4e0e\/dev\u76ee\u5f55\u7684\u533a\u522b\">\/sys\u4e0e\/dev\u76ee\u5f55\u7684\u533a\u522b<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-3\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=14262\/#%E5%AE%9E%E4%BE%8B\" title=\"\u5b9e\u4f8b\">\u5b9e\u4f8b<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-4\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=14262\/#%E7%BD%91%E5%8D%A1%E6%93%8D%E4%BD%9C\" title=\"\u7f51\u5361\u64cd\u4f5c\">\u7f51\u5361\u64cd\u4f5c<\/a><ul class=\"ez-toc-list-level-4\"><li class=\"ez-toc-heading-level-4\"><ul class=\"ez-toc-list-level-4\"><li class=\"ez-toc-heading-level-4\"><a class=\"ez-toc-link ez-toc-heading-5\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=14262\/#%E5%88%97%E5%87%BA%E6%89%80%E6%9C%89%E7%9A%84%E7%BD%91%E5%8D%A1%E8%AE%BE%E5%A4%87\" title=\"\u5217\u51fa\u6240\u6709\u7684\u7f51\u5361\u8bbe\u5907\">\u5217\u51fa\u6240\u6709\u7684\u7f51\u5361\u8bbe\u5907<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-4\"><a class=\"ez-toc-link ez-toc-heading-6\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=14262\/#%E5%88%A4%E6%96%AD%E7%BD%91%E5%8D%A1%E6%98%AF%E7%89%A9%E7%90%86%E7%BD%91%E5%8D%A1%E8%BF%98%E6%98%AF%E8%99%9A%E6%8B%9F%E7%BD%91%E5%8D%A1\" title=\"\u5224\u65ad\u7f51\u5361\u662f\u7269\u7406\u7f51\u5361\u8fd8\u662f\u865a\u62df\u7f51\u5361\">\u5224\u65ad\u7f51\u5361\u662f\u7269\u7406\u7f51\u5361\u8fd8\u662f\u865a\u62df\u7f51\u5361<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"sysfs%E4%BB%8B%E7%BB%8D\"><\/span>sysfs\u4ecb\u7ecd<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Sysfs\uff08System Filesystem\uff09\u662fLinux\u5185\u6838\u63d0\u4f9b\u7684\u4e00\u79cd\u865a\u62df\u6587\u4ef6\u7cfb\u7edf\uff0c\u7528\u4e8e\u5411\u7528\u6237\u7a7a\u95f4\u516c\u5f00\u6709\u5173\u8bbe\u5907\u548c\u9a71\u52a8\u7a0b\u5e8f\u7684\u4fe1\u606f\u3002\u5b83\u7c7b\u4f3c\u4e8e\/proc\u6587\u4ef6\u7cfb\u7edf\uff0c\u4f46\u662f\u4e13\u6ce8\u4e8e<strong>\u8bbe\u5907\u548c\u9a71\u52a8\u7a0b\u5e8f<\/strong>\u4fe1\u606f\uff0c\u800c\u975e\u8fdb\u7a0b\u4fe1\u606f\u3002<\/p>\n<p>Sysfs\u901a\u8fc7\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u65b9\u5f0f\u7ec4\u7ec7\u4fe1\u606f\uff0c\u5176\u4e2d\u6bcf\u4e2a\u6587\u4ef6\u6216\u76ee\u5f55\u5bf9\u5e94\u4e8e\u7cfb\u7edf\u4e2d\u7684\u4e00\u4e2a\u8bbe\u5907\u3001\u9a71\u52a8\u7a0b\u5e8f\u6216\u8005\u5176\u4ed6\u5185\u6838\u5bf9\u8c61\u3002\u8fd9\u4e9b\u6587\u4ef6\u901a\u5e38\u5305\u542b\u6709\u5173\u8bbe\u5907\u548c\u9a71\u52a8\u7a0b\u5e8f\u7684\u5c5e\u6027\u3001\u72b6\u6001\u548c\u914d\u7f6e\u4fe1\u606f\u3002\u6709\u4e9b\u6587\u4ef6\u53ef\u4ee5\u88ab\u5199\u5165\uff0c\u7528\u4e8e\u914d\u7f6e\u548c\u63a7\u5236\u8bbe\u5907\u3002<\/p>\n<p>Sysfs\u901a\u5e38\u88ab\u6302\u8f7d\u5728\/sys\u76ee\u5f55\u4e0b\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e00\u79cd\u65b9\u4fbf\u7684\u65b9\u5f0f\uff0c\u8ba9\u7528\u6237\u7a7a\u95f4\u7684\u7a0b\u5e8f\u53ef\u4ee5\u52a8\u6001\u5730\u83b7\u53d6\u548c\u7ba1\u7406\u7cfb\u7edf\u4e2d\u7684\u8bbe\u5907\u4fe1\u606f\uff0c\u800c\u65e0\u9700\u76f4\u63a5\u8bbf\u95ee\u5185\u6838\u6570\u636e\u7ed3\u6784\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"sys%E4%B8%8Edev%E7%9B%AE%E5%BD%95%E7%9A%84%E5%8C%BA%E5%88%AB\"><\/span>\/sys\u4e0e\/dev\u76ee\u5f55\u7684\u533a\u522b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><a href=\"https:\/\/blog.csdn.net\/weixin_41199566\/article\/details\/135741783\">https:\/\/blog.csdn.net\/weixin_41199566\/article\/details\/135741783<\/a><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E5%AE%9E%E4%BE%8B\"><\/span>\u5b9e\u4f8b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h2><span class=\"ez-toc-section\" id=\"%E7%BD%91%E5%8D%A1%E6%93%8D%E4%BD%9C\"><\/span>\u7f51\u5361\u64cd\u4f5c<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h4><span class=\"ez-toc-section\" id=\"%E5%88%97%E5%87%BA%E6%89%80%E6%9C%89%E7%9A%84%E7%BD%91%E5%8D%A1%E8%AE%BE%E5%A4%87\"><\/span>\u5217\u51fa\u6240\u6709\u7684\u7f51\u5361\u8bbe\u5907<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><code>ls \/sys\/class\/net<\/code><\/p>\n<h4><span class=\"ez-toc-section\" id=\"%E5%88%A4%E6%96%AD%E7%BD%91%E5%8D%A1%E6%98%AF%E7%89%A9%E7%90%86%E7%BD%91%E5%8D%A1%E8%BF%98%E6%98%AF%E8%99%9A%E6%8B%9F%E7%BD%91%E5%8D%A1\"><\/span>\u5224\u65ad\u7f51\u5361\u662f\u7269\u7406\u7f51\u5361\u8fd8\u662f\u865a\u62df\u7f51\u5361<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>\u865a\u62df\u7f51\u5361\u76ee\u5f55 <code>\/sys\/devices\/virtual\/net\/<\/code> \u4e0e <code>ls \/sys\/class\/net<\/code>\u7684\u5dee\u96c6\u5373\u4e3a\u7269\u7406\u7f51\u5361\u3002<\/p>\n<button class=\"simplefavorite-button\" data-postid=\"14262\" data-siteid=\"1\" data-groupid=\"1\" data-favoritecount=\"0\" style=\"\">\u6536\u85cf <i class=\"sf-icon-star-empty\"><\/i><\/button>","protected":false},"excerpt":{"rendered":"<p>https:\/\/www.cnblogs.com\/jikexianfeng\/p\/9209663.htm [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[795],"tags":[],"_links":{"self":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/14262"}],"collection":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14262"}],"version-history":[{"count":10,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/14262\/revisions"}],"predecessor-version":[{"id":14272,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/14262\/revisions\/14272"}],"wp:attachment":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14262"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}