Debian Codegraph @

psutil/arch/netbsd/init.h

raw
1 /*
2 * Copyright (c) 2009, Giampaolo Rodola'.
3 * Copyright (c) 2015, Ryo ONODERA.
4 * All rights reserved.
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8
9 #include <Python.h>
10
11 typedef struct kinfo_proc2 kinfo_proc;
12
13 // TODO: refactor this. Does not belong here.
14 int psutil_kinfo_proc(pid_t pid, kinfo_proc *proc);
15 int psutil_get_proc_list(kinfo_proc **procList, size_t *procCount);
16 char *psutil_get_cmd_args(pid_t pid, size_t *argsize);
17
18 PyObject *psutil_cpu_stats(PyObject *self, PyObject *args);
19 PyObject *psutil_disk_io_counters(PyObject *self, PyObject *args);
20 PyObject *psutil_net_connections(PyObject *, PyObject *);
21 PyObject *psutil_per_cpu_times(PyObject *self, PyObject *args);
22 PyObject *psutil_proc_cmdline(PyObject *self, PyObject *args);
23 PyObject *psutil_proc_cwd(PyObject *self, PyObject *args);
24 PyObject *psutil_proc_exe(PyObject *self, PyObject *args);
25 PyObject *psutil_proc_net_connections(PyObject *, PyObject *);
26 PyObject *psutil_proc_net_connections(PyObject *self, PyObject *args);
27 PyObject *psutil_proc_num_fds(PyObject *self, PyObject *args);
28 PyObject *psutil_proc_num_threads(PyObject *self, PyObject *args);
29 PyObject *psutil_proc_threads(PyObject *self, PyObject *args);
30 PyObject *psutil_swap_mem(PyObject *self, PyObject *args);
31 PyObject *psutil_virtual_mem(PyObject *self, PyObject *args);