New API glibtop_get_proc_affinity.

Linux implementaion.

svn path=/branches/affinity/; revision=2614
This commit is contained in:
Benoît Dejean
2007-06-25 21:40:35 +00:00
parent ef34cfb38a
commit 4c6b506488
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);
}