2020-06-09から1日間の記事一覧

2020-06-09 tcprivのユーザランド実装のためにカーネルのコードを読み続ける日

tcprivのユーザランド実装を始めている カーネルモジュールに/procファイルを作るのは簡単 proc_mkdir、proc_createなど int __init hoge_create_procfs(void) { struct proc_dir_entry *entry; entry = proc_mkdir("hoge/fuga", NULL); if (!entry) return …