New API : glibtop_get_proc_affinity.

Implemented for linux.

svn path=/trunk/; revision=2609
This commit is contained in:
Benoît Dejean
2007-06-25 17:27:27 +00:00
parent c0856a39bd
commit 6b0bafcafb
15 changed files with 210 additions and 10 deletions

View File

@@ -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);
}