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.
process_name -> process_pidカーネル モジュールからすべてのペア (ユーザー空間とカーネル空間)のリストを取得するにはどうすればよいですか?
process_name -> process_pid
カーネルモジュールでは、次のようなことができます:
rcu_read_lock(); for_each_process(g) { printk("%s --> %d\n", g->comm, task_tgid_vnr(g)); } rcu_read_unlock();