{"id":1417,"date":"2018-06-19T14:41:51","date_gmt":"2018-06-19T05:41:51","guid":{"rendered":"https:\/\/hldc.co.jp\/blog\/?p=1417"},"modified":"2024-08-14T13:35:11","modified_gmt":"2024-08-14T04:35:11","slug":"%e6%a4%9c%e8%a8%bc%ef%bc%81%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e6%9b%b8%e3%81%8d%e5%87%ba%e3%81%97%e3%81%ae%e3%82%aa%e3%83%bc%e3%83%90%e3%83%bc%e3%83%98%e3%83%83%e3%83%89%e3%82%92%e6%af%94%e8%bc%83-2","status":"publish","type":"post","link":"https:\/\/hldc.co.jp\/blog\/2018\/06\/19\/1417\/","title":{"rendered":"\u691c\u8a3c\uff01\u30d5\u30a1\u30a4\u30eb\u66f8\u304d\u51fa\u3057\u306e\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u3092\u6bd4\u8f03\u3057\u3066\u307f\u305f\uff01#2"},"content":{"rendered":"\n<p>\u4eca\u56de\u306f\u3001Linux\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30bf\u30fc\u30b2\u30c3\u30c8\u3068\u3057\u3066\u3001\u300c\u30d5\u30a1\u30a4\u30eb\u66f8\u304d\u51fa\u3057\u300d\u63a5\u7d9a\u306e\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u306b\u3064\u3044\u3066\u691c\u8a3c\u3057\u307e\u3059\u3002<br>\u52d5\u7684\u30c6\u30b9\u30c8\u30c4\u30fc\u30ebDT10(\u4ee5\u4e0b\u3001DT10)\u306f\u3001Linux\u3092\u642d\u8f09\u3057\u305f\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5c64\u306e\u30c8\u30ec\u30fc\u30b9\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3067\u304d\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u30c7\u30d0\u30a4\u30b9\u30c9\u30e9\u30a4\u30d0\u306e\u5b9f\u884c\u7d4c\u8def\u3084\u51e6\u7406\u6642\u9593\u3001\u30d7\u30ed\u30bb\u30b9\u30fb\u30b9\u30ec\u30c3\u30c9\u306e\u9077\u79fb\u72b6\u614b\u304a\u3088\u3073\u5360\u6709\u7387\u306a\u3069\u30ab\u30fc\u30cd\u30eb\u5c64\u306e\u30c8\u30ec\u30fc\u30b9\u30c7\u30fc\u30bf\u3082\u540c\u6642\u306b\u53d6\u5f97\u304c\u3067\u304d\u3066\u3001\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u52d5\u304d\u3092\u4fef\u77b0\u3057\u3001\u30b9\u30c6\u30c3\u30d7\u5358\u4f4d\u3067\u306e\u8a73\u7d30\u306a\u52d5\u304d\u307e\u3067\u3092\u628a\u63e1\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u88fd\u54c1\u306e\u5206\u91ce\u3092\u554f\u308f\u305a\u3001Linux\u642d\u8f09\u6a5f\u5668\u306e\u958b\u767a\u306b\u304a\u3044\u3066\u3001DT10\u304c\u5e83\u304f\u63a1\u7528\u3055\u308c\u308b\u7406\u7531\u306f\u3053\u3053\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>DT10\u3092\u6d3b\u7528\u3059\u308b\u969b\u306b\u30dd\u30a4\u30f3\u30c8\u3068\u306a\u308b\u306e\u306f\u3001\u30c8\u30ec\u30fc\u30b9\u30c7\u30fc\u30bf\u3092\u51fa\u529b\u3059\u308b\u6642\u306e\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u3067\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5c64\u3068\u30ab\u30fc\u30cd\u30eb\u5c64\u3092\u540c\u6642\u306b\u30c8\u30ec\u30fc\u30b9\u3059\u308b\u3053\u3068\u3092\u8003\u3048\u308b\u3068\u3001\u30ab\u30fc\u30cd\u30eb\u5c64\u306e\u30c7\u30d0\u30a4\u30b9\u30c9\u30e9\u30a4\u30d0\u3067\u306f\u3001\u7279\u306b\u6642\u9593\u7684\u306b\u30b7\u30d3\u30a2\u306a\u51e6\u7406\u3092\u6c42\u3081\u3089\u308c\u308b\u3053\u3068\u304c\u591a\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u6bd4\u8f03\u7684\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u304c\u5c0f\u3055\u304f\u3001\u5c0e\u5165\u6642\u306e\u624b\u9593\u304c\u639b\u304b\u3089\u306a\u3044\u305f\u3081\u3001\u7279\u306b\u300c\u30d5\u30a1\u30a4\u30eb\u66f8\u304d\u51fa\u3057\u300d\u63a5\u7d9a\u3092DT10\u3067\u4f7f\u7528\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u69d8\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306f\u3001\u305d\u306e\u300c\u30d5\u30a1\u30a4\u30eb\u66f8\u304d\u51fa\u3057\u300d\u63a5\u7d9a\u306b\u304a\u3044\u3066\u3001\u3055\u3089\u306b\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u3092\u5c0f\u3055\u304f\u3067\u304d\u306a\u3044\u304b\u3092\u691c\u8a3c\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"box_border_gray\">\n<h5>CONTENTS<\/h5>\n<ul>\n<li><a href=\"#cont1\">\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u306e\u9055\u3044\u3092\u691c\u8a3c<\/a>\n<ul>\n<li><a href=\"#cont1-1\">DT10\u7528\u306e\u30c7\u30d0\u30a4\u30b9\u30c9\u30e9\u30a4\u30d0\u306b\u3064\u3044\u3066<\/a><\/li>\n<li><a href=\"#cont1-2\">\u691c\u8a3c\u3057\u305f\u51e6\u7406<\/a><\/li>\n<li><a href=\"#cont1-3\">\u30c6\u30b9\u30c8\u6761\u4ef6<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#cont2\">\u691c\u8a3c\u7d50\u679c<\/a>\n<ul>\n<li><a href=\"#cont2-1\">syscall\u304c\u6700\u901f<\/a><\/li>\n<li><a href=\"#cont2-2\">syscall\u4f7f\u7528\u6642\u306e\u30c8\u30ec\u30fc\u30c9\u30aa\u30d5<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#cont3\">\u307e\u3068\u3081<\/a><\/li>\n<\/ul>\n<\/div>\n\n\n\n<div id=\"cont1\" class=\"anchor\">&nbsp;<\/div>\n\n\n\n<h2 class=\"wp-block-heading title\">\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u306e\u9055\u3044\u3092\u691c\u8a3c<\/h2>\n\n\n\n<div id=\"cont1-1\" class=\"anchor\">&nbsp;<\/div>\n\n\n\n<h5 class=\"wp-block-heading underline\">DT10\u7528\u306e\u30c7\u30d0\u30a4\u30b9\u30c9\u30e9\u30a4\u30d0\u306b\u3064\u3044\u3066<\/h5>\n\n\n\n<p>\u30ab\u30fc\u30cd\u30eb\u5c64\u306e\u51e6\u7406\u304b\u3089\u30c8\u30ec\u30fc\u30b9\u30c7\u30fc\u30bf\u3092\u51fa\u529b\u3059\u308b\u969b\u306b\u3001\u30ab\u30fc\u30cd\u30eb\u5c64\u304b\u3089\u30d5\u30a1\u30a4\u30ebIO\u306e\u64cd\u4f5c\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u3067\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5c64\u3068\u30ab\u30fc\u30cd\u30eb\u5c64\u306e\u30c8\u30ec\u30fc\u30b9\u30c7\u30fc\u30bf\u306e\u53d6\u5f97\u3092\u3069\u306e\u3088\u3046\u306b\u3057\u3066\u4e21\u7acb\u3057\u3066\u3044\u308b\u306e\u304b\uff1fDT10\u7528\u306e\u30c7\u30d0\u30a4\u30b9\u30c9\u30e9\u30a4\u30d0\u3067\u306f\u3001\u3069\u3061\u3089\u306e\u30c8\u30ec\u30fc\u30b9\u30c7\u30fc\u30bf\u3082\u4e00\u5ea6\u30ab\u30fc\u30cd\u30eb\u5c64\u306e\u5185\u90e8\u30e1\u30e2\u30ea\u306b\u8caf\u3081\u3066\u304a\u304f\u3068\u3044\u3046\u65b9\u6cd5\u3092\u53d6\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5c64\u304b\u3089\u3082\u3053\u306e\u30ab\u30fc\u30cd\u30eb\u5c64\u3067\u78ba\u4fdd\u3055\u308c\u305f\u5185\u90e8\u30e1\u30e2\u30ea\u306b\u30a2\u30af\u30bb\u30b9\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u304c\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5c64\u304b\u3089\u306f\u3001\u3053\u306e\u30e1\u30e2\u30ea\u306b\u76f4\u63a5\u30a2\u30af\u30bb\u30b9\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u305d\u3053\u3067\u3001\u5f0a\u793e\u3067\u63d0\u4f9b\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u306eDT10\u7528\u306e\u30c7\u30d0\u30a4\u30b9\u30c9\u30e9\u30a4\u30d0\u306b\u304a\u3044\u3066\u306f\u3001proc\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u4f7f\u7528\u3057\u3066\u3001\u3053\u306e\u30e1\u30e2\u30ea\u306b\u30a2\u30af\u30bb\u30b9\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2018\/06\/memory_image.gif\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" loading=\"lazy\" width=\"456\" height=\"219\" src=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2018\/06\/memory_image.gif\" alt=\"\" class=\"wp-image-1423\"\/><\/a><\/figure><\/div>\n\n\n<p class=\"has-text-align-center\"><strong>\u56f3\uff11 \u30c8\u30ec\u30fc\u30b9\u30c7\u30fc\u30bf\u3092\u5185\u90e8\u5171\u6709\u30e1\u30e2\u30ea\u306b\u8caf\u3081\u308b<\/strong><\/p>\n\n\n\n<p>\u6700\u7d42\u7684\u306b\u3053\u306e\u5185\u90e8\u30e1\u30e2\u30ea\u306e\u30c7\u30fc\u30bf\u306f\u30b5\u30f3\u30d7\u30eb\u30c9\u30e9\u30a4\u30d0\u306b\u4ed8\u5c5e\u3057\u3066\u3044\u308b\u7c21\u6613\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u3088\u3063\u3066\u30d5\u30a1\u30a4\u30eb\u5316\u3055\u308c\u3001\u30ed\u30b0\u30c7\u30fc\u30bf\u3068\u3057\u3066\u4fdd\u5b58\u3055\u308c\u308b\u3068\u3044\u3063\u305f\u4ed5\u7d44\u307f\u3067\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2018\/06\/file_output.gif\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" loading=\"lazy\" width=\"359\" height=\"241\" src=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2018\/06\/file_output.gif\" alt=\"\" class=\"wp-image-1424\"\/><\/a><\/figure><\/div>\n\n\n<p class=\"has-text-align-center\"><strong>\u56f3\uff12 \u30c8\u30ec\u30fc\u30b9\u30c7\u30fc\u30bf\u306e\u30d5\u30a1\u30a4\u30eb\u51fa\u529b<\/strong><\/p>\n\n\n\n<div id=\"cont1-2\" class=\"anchor\">&nbsp;<\/div>\n\n\n\n<h5 class=\"wp-block-heading underline\">\u691c\u8a3c\u3057\u305f\u51e6\u7406<\/h5>\n\n\n\n<p>\u300c\u30d5\u30a1\u30a4\u30eb\u66f8\u304d\u51fa\u3057\u300d\u63a5\u7d9a\u306b\u304a\u3044\u3066\u3001\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u3092\u5c0f\u3055\u304f\u3059\u308b\u305f\u3081\u306b\u306f\u3069\u3046\u3057\u305f\u3089\u826f\u3044\u306e\u304b\uff1f<br>\u305d\u308c\u306f\u30c8\u30ec\u30fc\u30b9\u30c7\u30fc\u30bf\u3092\u8caf\u3081\u308b\u5185\u90e8\u30e1\u30e2\u30ea\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u6642\u9593\u3092\u5c0f\u3055\u304f\u3059\u308b\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u691c\u8a3c\u3067\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5c64\u306e\u30c8\u30ec\u30fc\u30b9\u30c7\u30fc\u30bf\u51fa\u529b\u6642\u306b\u30ab\u30fc\u30cd\u30eb\u5c64\u306e\u30e1\u30e2\u30ea\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u4ed5\u7d44\u307f\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3059\u308b\u3053\u3068\u3067\u3001\u30c6\u30b9\u30c8\u30dd\u30a4\u30f3\u30c8\u306e\u51fa\u529b\u51e6\u7406\u306b\u304b\u304b\u308b\u6642\u9593\u3001\u3064\u307e\u308a\u3001\u305d\u308c\u3089\u306e\u4ed5\u7d44\u307f\u306b\u304a\u3044\u3066\u3001\u30e1\u30e2\u30ea\u306b\u5bfe\u3057\u3066\u30a2\u30af\u30bb\u30b9\u3059\u308b\u6642\u306e\u51e6\u7406\u6642\u9593\u304c\u3069\u306e\u3088\u3046\u306b\u5909\u5316\u3059\u308b\u306e\u304b\u3092\u8a08\u6e2c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\uff11\uff09proc\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0(\u4ee5\u4e0b\u3001procfs)<br>\u21d2 write<br>\uff12\uff09\u30c7\u30d0\u30a4\u30b9\u30d5\u30a1\u30a4\u30eb(\u4ee5\u4e0bdev)<br>\u21d2 write<br>\uff13\uff09debug\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0(\u4ee5\u4e0b\u3001debugfs)<br>\u21d2 write<br>\uff14\uff09\u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb(\u4ee5\u4e0b\u3001syscall)<\/p>\n\n\n\n<div id=\"cont1-3\" class=\"anchor\">&nbsp;<\/div>\n\n\n\n<h5 class=\"wp-block-heading underline\">\u30c6\u30b9\u30c8\u6761\u4ef6<\/h5>\n\n\n\n<p><strong>\u25bc\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u30b3\u30fc\u30c9<\/strong><br>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5c64\u3067\u4ee5\u4e0b\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u305f\u3068\u304d\u306b\u3001\u8d64\u8272\u3067\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u30c6\u30b9\u30c8\u30dd\u30a4\u30f3\u30c8\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2018\/06\/TP_code.gif\"><img decoding=\"async\" loading=\"lazy\" width=\"701\" height=\"226\" src=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2018\/06\/TP_code.gif\" alt=\"\" class=\"wp-image-1425\"\/><\/a><\/figure><\/div>\n\n\n<p><\/p>\n\n\n\n<p><strong>\u25bc\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u306e\u8a08\u6e2c\u65b9\u6cd5<br><\/strong>\u30fb\u4e0a\u306e\u56f3\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306b\u9023\u7d9a\u3057\u305f\uff12\u3064\u306e\u30c6\u30b9\u30c8\u30dd\u30a4\u30f3\u30c8\u3092\u30c8\u30ec\u30fc\u30b9\u3057\u305f\u6642\u306e\u5dee\u5206\u6642\u9593\u3092DT10\u30a2\u30d7\u30ea\u3067\u8a08\u6e2c\u3057\u307e\u3059\u3002<br>\u30fb\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3001DT10\u30a2\u30d7\u30ea\u306e\u300c2\u70b9\u9593\u5b9f\u884c\u6642\u9593\u30ec\u30dd\u30fc\u30c8\u300d\u3092\u8a08\u6e2c\u7d50\u679c\u3068\u3057\u307e\u3059\u3002<br>\u30fb\u6642\u9593\u30c7\u30fc\u30bf\u306f\u3001\u30c6\u30b9\u30c8\u30dd\u30a4\u30f3\u30c8\u306b\u3088\u308b\u901a\u904e\u60c5\u5831\u306e\u51fa\u529b\u6642\u306b\u30c9\u30e9\u30a4\u30d0\u5074\u3067\u4ed8\u52a0\u3057\u307e\u3059\u3002&#8221;getnstimeofday&#8221;\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>\u25bc\u691c\u8a3c\u3057\u305f\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u30b9\u30da\u30c3\u30af<br><\/strong>&nbsp;\u30fb\u30bf\u30fc\u30b2\u30c3\u30c8\u30dc\u30fc\u30c9\uff1aArmadillo-440 (&nbsp;ARM9\u30d7\u30ed\u30bb\u30c3\u30b5\u642d\u8f09\u30dc\u30fc\u30c9\/\u682a\u5f0f\u4f1a\u793e\u30a2\u30c3\u30c8\u30de\u30fc\u30af\u30fb\u30c6\u30af\u30ce\u793e\u88fd)<br>\u30d7\u30ed\u30bb\u30c3\u30b5:Freescale i.MX257<br>CPU\u30b3\u30a2: ARM926EJ-S<br>CPU\u30b3\u30a2\u30af\u30ed\u30c3\u30af: 400MHz<br>\u30d0\u30b9\u30af\u30ed\u30c3\u30af: 133MHz<br>RAM: 128MB(LPDDR SDRAM)<br>Flash ROM 32MB(NOR\u578b)<br>\u30fbOS\uff1aLinux2.6-26<\/p>\n\n\n\n<div id=\"cont2\" class=\"anchor\">&nbsp;<\/div>\n\n\n\n<h2 class=\"wp-block-heading title\">\u691c\u8a3c\u7d50\u679c<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2018\/06\/LinuxDriverResult.png\"><img decoding=\"async\" loading=\"lazy\" width=\"527\" height=\"136\" src=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2018\/06\/LinuxDriverResult.png\" alt=\"\" class=\"wp-image-1476\" srcset=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2018\/06\/LinuxDriverResult.png 527w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2018\/06\/LinuxDriverResult-300x77.png 300w\" sizes=\"(max-width: 527px) 100vw, 527px\" \/><\/a><\/figure><\/div>\n\n\n<div id=\"cont2-1\" class=\"anchor\">&nbsp;<\/div>\n\n\n\n<h5 class=\"wp-block-heading underline\">syscall\u304c\u6700\u901f<\/h5>\n\n\n\n<p>\u6700\u3082\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u304c\u5c0f\u3055\u3044\u306e\u306f\u3001syscall\u3092\u4f7f\u7528\u3057\u305f\u5834\u5408\u3067\u3057\u305f\u3002\u5e73\u5747\u6642\u9593\u3067\u306fprocfs\u306b\u6bd4\u3079\u3066\u3001\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u304c2us\u3082\u5c0f\u3055\u304f\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\u3002\u6b21\u3044\u3067\u3001debugfs\u304c\u5c0f\u3055\u3044\u5024\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u4e00\u65b9\u3001dev\u306f\u6700\u3082\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u304c\u5927\u304d\u3044\u3068\u3044\u3046\u7d50\u679c\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br>\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u304c\u6700\u5c0f\u3068\u306a\u3063\u305fsyscall\u3068\u307b\u304b\u306e\u4ed5\u7d44\u307f\u3068\u306e\u5927\u304d\u306a\u9055\u3044\u306f\u3001\u30c7\u30fc\u30bf\u51fa\u529b\u6642\u306e\u51e6\u7406(\u624b\u7d9a\u304d)\u306e\u6570\u304c\u5927\u304d\u304f\u7570\u306a\u308b\u3001\u3068\u3044\u3046\u70b9\u3067\u3059\u3002\u30c7\u30fc\u30bf\u51fa\u529b\u6642\u306b\u30c7\u30d0\u30a4\u30b9\u30c9\u30e9\u30a4\u30d0\u3067&#8221;write&#8221;\u95a2\u6570\u304c\u547c\u3073\u51fa\u3055\u308c\u307e\u3059\u304c\u3001\u3069\u306e\u30c7\u30d0\u30a4\u30b9\u30c9\u30e9\u30a4\u30d0\u306e\u3082\u306e\u304b\u3001OS\u5185\u90e8\u3067\u5224\u5225\u304c\u884c\u308f\u308c\u305f\u4e0a\u3067\u3001\u30e1\u30e2\u30ea\u3078\u3068\u66f8\u304d\u8fbc\u307e\u308c\u307e\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb\u3067\u306f\u305d\u306e\u3088\u3046\u306a\u51e6\u7406\u3092\u7d4c\u308b\u3053\u3068\u306a\u304f\u3001\u30e1\u30e2\u30ea\u306b\u5024\u3092\u66f8\u304d\u8fbc\u3080\u3053\u3068\u306b\u306a\u308b\u305f\u3081\u3001\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u306f\u4ed6\u3068\u6bd4\u3079\u3066\u3001\u3088\u308a\u5c0f\u3055\u3044\u3068\u3044\u3046\u7d50\u679c\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div id=\"cont2-2\" class=\"anchor\">&nbsp;<\/div>\n\n\n\n<h5 class=\"wp-block-heading underline\">syscall\u4f7f\u7528\u6642\u306e\u30c8\u30ec\u30fc\u30c9\u30aa\u30d5<\/h5>\n\n\n\n<p>\u3053\u306e\u691c\u8a3c\u30c7\u30fc\u30bf\u3060\u3051\u898b\u308b\u3068syscall\u306b\u5927\u304d\u306a\u30a2\u30c9\u30d0\u30f3\u30c6\u30fc\u30b8\u304c\u3042\u308b\u3088\u3046\u306b\u601d\u3044\u307e\u3059\u304c\u3001DT10\u7528\u306e\u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb\u3092\u767b\u9332\u3059\u308b\u306a\u3069CPU\u306b\u4f9d\u5b58\u3059\u308b\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306a\u3069\u304c\u5fc5\u8981\u3067\u3001\u30d5\u30a1\u30a4\u30eb\u66f8\u304d\u51fa\u3057\u306e\u5c0e\u5165\u306e\u5bb9\u6613\u3055\u3068\u3044\u3046\u5229\u70b9\u3092\u3042\u308b\u7a0b\u5ea6\u72a0\u7272\u306b\u3057\u3066\u3044\u308b\u5074\u9762\u3082\u3042\u308a\u307e\u3059\u3002\u4ed6\u306e\u4ed5\u7d44\u307f\u306b\u304a\u3044\u3066\u306f\u3001DT10\u7528\u306e\u30c7\u30d0\u30a4\u30b9\u30c9\u30e9\u30a4\u30d0\u3060\u3051\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308c\u3070\u5bb9\u6613\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div id=\"cont3\" class=\"anchor\">&nbsp;<\/div>\n\n\n\n<h2 class=\"wp-block-heading title\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>Linux\u3067\u306e\u300c\u30d5\u30a1\u30a4\u30eb\u66f8\u304d\u51fa\u3057\u300d\u63a5\u7d9a\u306b\u304a\u3044\u3066\u306f\u3001syscall\u3092\u4f7f\u3063\u3066\u901f\u5ea6\u3092\u512a\u5148\u3059\u308b\u306e\u304b\u3001\u5c0e\u5165\u306e\u5bb9\u6613\u3055\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u306b\u4eca\u56de\u691c\u8a3c\u3057\u305f\u4ed6\u306e\u4ed5\u7d44\u307f\u306b\u3059\u308b\u306e\u304b\u3001\u4f55\u3092\u512a\u5148\u3059\u308b\u304b\u3088\u3063\u3066\u3001\u30d9\u30bf\u30fc\u306a\u9078\u629e\u304c\u3042\u308b\u3068\u3044\u3046\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3057\u305f\u3002<br>\u4eca\u56de\u306e\u691c\u8a3c\u306b\u95a2\u9023\u3057\u3066\u3001\u5f0a\u793e\u3067\u306fsyscall\u3092\u4f7f\u7528\u3057\u305f\u30c9\u30e9\u30a4\u30d0\u3092\u516c\u958b\u3057\u3066\u3044\u307e\u3059\u3002\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb(\u30e6\u30fc\u30b6\u30fc\u69d8\u9650\u5b9a\u306e\u30da\u30fc\u30b8\u3067\u3059)\u3082\u516c\u958b\u3057\u3066\u304a\u308a\u307e\u3059\u306e\u3067\u3001\u305c\u3072\u53c2\u8003\u306b\u3057\u3066\u3044\u305f\u3060\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"box_border_gray\">\n<h5>Linux\u3067\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u304c\u524a\u6e1b\u3067\u304d\u308bsyscall\u3092\u4f7f\u3063\u305f\u30c9\u30e9\u30a4\u30d0<\/h5>\n<p>\u30fb \u5f93\u6765\u306e\u30c7\u30d0\u30a4\u30b9\u30c9\u30e9\u30a4\u30d0\u3092\u4f7f\u3046\u30b5\u30f3\u30d7\u30eb\u30c9\u30e9\u30a4\u30d0\u3088\u308a\u3082\u3001\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u3092\u524a\u6e1b\u3067\u304d\u307e\u3059\u3002<br>\u30fb \u30c6\u30b9\u30c8\u30dd\u30a4\u30f3\u30c8\u3092\u633f\u5165\u3057\u305f\u30a2\u30d7\u30ea\u304c\u3001\u30d5\u30a1\u30a4\u30eb\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u306b\u3088\u3063\u3066\u3001proc\u30d5\u30a1\u30a4\u30eb\u3078\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u30b7\u30b9\u30c6\u30e0\u3067\u3082\u4f7f\u3048\u307e\u3059\u3002<br>\n<font color=\"red\">\u203b\u30b5\u30dd\u30fc\u30c8\u30b5\u30a4\u30c8\u3002\u30ed\u30b0\u30a4\u30f3\u304c\u5fc5\u8981\u3067\u3059\u3002<\/font><\/p>\n<p><h6><hard>\uff0d <a class=\"\" target=\"_blank\" href=\"https:\/\/hldc.co.jp\/support\/by-product\/dt10-dts\/tutorial\/advanced\/driver-custom-method\/proposition4\/\" onclick=\"gtag('event', 'Click', {'event_category': 'Link_bottom','event_label': '\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u3092\u6bd4\u8f03\u3057\u3066\u307f\u305f\uff01#2_\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u30da\u30fc\u30b8'});\">\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3001\u30b5\u30f3\u30d7\u30eb\u30c9\u30e9\u30a4\u30d0\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306f\u3053\u3061\u3089<\/a> \uff0d<hard\/><h6\/><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u6bd4\u8f03\u7684\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u304c\u5c0f\u3055\u304f\u3001\u5c0e\u5165\u6642\u306e\u624b\u9593\u304c\u639b\u304b\u3089\u306a\u3044\u305f\u3081\u3001Linux\u6a5f\u5668\u3092\u958b\u767a\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u69d8\u306f\u3001\u7279\u306b\u300c\u30d5\u30a1\u30a4\u30eb\u66f8\u304d\u51fa\u3057\u300d\u63a5\u7d9a\u3092DT10\u3067\u4f7f\u7528\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u69d8\u304c\u591a\u3044\u3067\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u3001Linux\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30bf\u30fc\u30b2\u30c3\u30c8\u3068\u3057\u3066\u3001\u300c\u30d5\u30a1\u30a4\u30eb\u66f8\u304d\u51fa\u3057\u300d\u63a5\u7d9a\u306b\u304a\u3051\u308b\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u306e\u524a\u6e1b\u306b\u3064\u3044\u3066\u691c\u8a3c\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":5,"featured_media":249,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","_links_to":"","_links_to_target":""},"categories":[2,10],"tags":[],"featured_image_src":"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2017\/08\/img_custom_dash-400x250.png","post_categories":[{"term_id":2,"name":"\u6280\u8853\u60c5\u5831","link":"https:\/\/hldc.co.jp\/blog\/category\/technical\/"},{"term_id":10,"name":"\u63a5\u7d9a\u65b9\u5f0f","link":"https:\/\/hldc.co.jp\/blog\/category\/%e6%8e%a5%e7%b6%9a%e6%96%b9%e5%bc%8f\/"}],"_links":{"self":[{"href":"https:\/\/hldc.co.jp\/blog\/wp-json\/wp\/v2\/posts\/1417"}],"collection":[{"href":"https:\/\/hldc.co.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hldc.co.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hldc.co.jp\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/hldc.co.jp\/blog\/wp-json\/wp\/v2\/comments?post=1417"}],"version-history":[{"count":3,"href":"https:\/\/hldc.co.jp\/blog\/wp-json\/wp\/v2\/posts\/1417\/revisions"}],"predecessor-version":[{"id":14160,"href":"https:\/\/hldc.co.jp\/blog\/wp-json\/wp\/v2\/posts\/1417\/revisions\/14160"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hldc.co.jp\/blog\/wp-json\/wp\/v2\/media\/249"}],"wp:attachment":[{"href":"https:\/\/hldc.co.jp\/blog\/wp-json\/wp\/v2\/media?parent=1417"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hldc.co.jp\/blog\/wp-json\/wp\/v2\/categories?post=1417"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hldc.co.jp\/blog\/wp-json\/wp\/v2\/tags?post=1417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}