summaryrefslogtreecommitdiff
path: root/sysdeps/common/default.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/common/default.c')
-rw-r--r--sysdeps/common/default.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/sysdeps/common/default.c b/sysdeps/common/default.c
index 2df25ee6..e3b096f2 100644
--- a/sysdeps/common/default.c
+++ b/sysdeps/common/default.c
@@ -431,3 +431,18 @@ glibtop_get_proc_affinity(glibtop_proc_affinity *buf, pid_t pid)
{
return glibtop_get_proc_affinity_l(glibtop_global_server, buf, pid);
}
+
+/**
+ * glibtop_get_proc_io: Get the io stats for the given pid
+ * @buf: Buffer where the result will be given
+ * @pid: Process id to get the io stats for
+ *
+ * Get the io stats for a process
+ *
+ * Returns: A list of processor ID of 'buf.number' elements.
+ */
+void
+glibtop_get_proc_io(glibtop_proc_io *buf, pid_t pid)
+{
+ return glibtop_get_proc_io_l(glibtop_global_server, buf, pid);
+}