标签: linux process system call
我正在Linux中编写一个系统调用来获取指定进程的数据。
,例如process's start time,the numbers of siblings of the process
process's start time
the numbers of siblings of the process
虽然我发现task_struct包含了我需要的大量数据,例如start_time
task_struct
start_time
或者我可以打电话 getpid() 获取进程ID,
getpid()
我仍然不知道如何通过给定的进程ID获取指定进程的start_time,兄弟数量或任何其他信息。