New API : glibtop_get_proc_affinity.
Implemented for linux. svn path=/trunk/; revision=2609
This commit is contained in:
@@ -368,3 +368,17 @@ glibtop_get_proc_wd(glibtop_proc_wd *buf, pid_t pid)
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* glibtop_get_proc_affinity:
|
||||
* @buf:
|
||||
* @pid: Process id to get the affinity
|
||||
*
|
||||
* Get the processor affinity list for a process
|
||||
*
|
||||
* Returns: A list of processor ID of 'buf.number' elements.
|
||||
*/
|
||||
guint16 *
|
||||
glibtop_get_proc_affinity(glibtop_proc_affinity *buf, pid_t pid)
|
||||
{
|
||||
return glibtop_get_proc_affinity_l(glibtop_global_server, buf, pid);
|
||||
}
|
||||
|
Reference in New Issue
Block a user