OLD | NEW |
1 /* | 1 /* |
2 * $Id: _psutil_bsd.h 777 2010-11-08 18:29:13Z g.rodola $ | 2 * $Id: _psutil_bsd.h 1142 2011-10-05 18:45:49Z g.rodola $ |
| 3 * |
| 4 * Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. 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. |
3 * | 7 * |
4 * BSD platform-specific module methods for _psutil_bsd | 8 * BSD platform-specific module methods for _psutil_bsd |
5 */ | 9 */ |
6 | 10 |
7 #include <Python.h> | 11 #include <Python.h> |
8 | 12 |
9 // --- per-process functions | 13 // --- per-process functions |
10 | 14 |
11 static PyObject* get_cpu_times(PyObject* self, PyObject* args); | 15 static PyObject* get_cpu_times(PyObject* self, PyObject* args); |
12 static PyObject* get_process_name(PyObject* self, PyObject* args); | 16 static PyObject* get_process_name(PyObject* self, PyObject* args); |
| 17 static PyObject* get_process_exe(PyObject* self, PyObject* args); |
13 static PyObject* get_process_cmdline(PyObject* self, PyObject* args); | 18 static PyObject* get_process_cmdline(PyObject* self, PyObject* args); |
14 static PyObject* get_process_ppid(PyObject* self, PyObject* args); | 19 static PyObject* get_process_ppid(PyObject* self, PyObject* args); |
15 static PyObject* get_process_uid(PyObject* self, PyObject* args); | 20 static PyObject* get_process_uids(PyObject* self, PyObject* args); |
16 static PyObject* get_process_gid(PyObject* self, PyObject* args); | 21 static PyObject* get_process_gids(PyObject* self, PyObject* args); |
17 static PyObject* get_process_create_time(PyObject* self, PyObject* args); | 22 static PyObject* get_process_create_time(PyObject* self, PyObject* args); |
18 static PyObject* get_memory_info(PyObject* self, PyObject* args); | 23 static PyObject* get_memory_info(PyObject* self, PyObject* args); |
19 static PyObject* get_process_num_threads(PyObject* self, PyObject* args); | 24 static PyObject* get_process_num_threads(PyObject* self, PyObject* args); |
| 25 static PyObject* get_process_threads(PyObject* self, PyObject* args); |
| 26 static PyObject* get_process_status(PyObject* self, PyObject* args); |
| 27 static PyObject* get_process_io_counters(PyObject* self, PyObject* args); |
| 28 static PyObject* get_process_tty_nr(PyObject* self, PyObject* args); |
20 | 29 |
21 // --- system-related functions | 30 // --- system-related functions |
22 | 31 |
23 static PyObject* get_pid_list(PyObject* self, PyObject* args); | 32 static PyObject* get_pid_list(PyObject* self, PyObject* args); |
24 static PyObject* get_num_cpus(PyObject* self, PyObject* args); | 33 static PyObject* get_num_cpus(PyObject* self, PyObject* args); |
25 static PyObject* get_total_phymem(PyObject* self, PyObject* args); | 34 static PyObject* get_total_phymem(PyObject* self, PyObject* args); |
26 static PyObject* get_avail_phymem(PyObject* self, PyObject* args); | 35 static PyObject* get_avail_phymem(PyObject* self, PyObject* args); |
27 static PyObject* get_total_virtmem(PyObject* self, PyObject* args); | 36 static PyObject* get_total_virtmem(PyObject* self, PyObject* args); |
28 static PyObject* get_avail_virtmem(PyObject* self, PyObject* args); | 37 static PyObject* get_avail_virtmem(PyObject* self, PyObject* args); |
29 static PyObject* get_system_cpu_times(PyObject* self, PyObject* args); | 38 static PyObject* get_system_cpu_times(PyObject* self, PyObject* args); |
30 | 39 static PyObject* get_system_per_cpu_times(PyObject* self, PyObject* args); |
| 40 static PyObject* get_system_boot_time(PyObject* self, PyObject* args); |
| 41 static PyObject* get_disk_partitions(PyObject* self, PyObject* args); |
| 42 static PyObject* get_network_io_counters(PyObject* self, PyObject* args); |
OLD | NEW |