Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
printk がカーネル空間からユーザー空間にデータを渡す方法を知りたいです。printkもrelayfsを使用しているか、独自の実装を持っているかに関係なく、大量のデータをカーネル空間からユーザー空間に転送するための効率的で統合されたファイルシステムを提供するrelayfsについて聞いたことがありますか??
printkユーザー空間にデータを渡しません。カーネル リング バッファにのみ書き込みます。プログラムはdmesgそれを外に持ち出すようなものです。
printk
dmesg
カーネル リング バッファの読み取りについては、 klogctl(2)( )のドキュメントを参照してください。man 2 klogctl
klogctl(2)
man 2 klogctl