summaryrefslogtreecommitdiff
path: root/sysdeps/common
diff options
context:
space:
mode:
authorBenoît Dejean <bdejean@src.gnome.org>2007-06-25 17:27:27 +0000
committerBenoît Dejean <bdejean@src.gnome.org>2007-06-25 17:27:27 +0000
commit6b0bafcafb6a2bbaf9bacad6088bc801b8f070ae (patch)
tree2d0e827d230a206f2049cffd8043da68e499019d /sysdeps/common
parentc0856a39bd4d13714286aa968e0fe6b14e951a19 (diff)
downloadlibgtop-6b0bafcafb6a2bbaf9bacad6088bc801b8f070ae.tar.gz
New API : glibtop_get_proc_affinity.
Implemented for linux. svn path=/trunk/; revision=2609
Diffstat (limited to 'sysdeps/common')
-rw-r--r--sysdeps/common/default.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/sysdeps/common/default.c b/sysdeps/common/default.c
index ae66c01f..71db0746 100644
--- a/sysdeps/common/default.c
+++ b/sysdeps/common/default.c
@@ -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);
+}