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高解像度で現在の時刻を取得するにはどうすればよいですか? また、カーネル モジュール コードでこのような高解像度の時間を取得したいと考えていました。
printk
を使用する必要がありますgetnstimeofday()。
getnstimeofday()