diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-10-02 14:42:56 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-10-02 14:42:56 -0300 |
commit | e60073b8a8f736c935706ee2227ef1fc6945c9d1 (patch) | |
tree | 1ca3a8e7795dcb58e1b20cee7e64745bafc30e3b | |
parent | bc03be0a7a5006b519896a4a8a8656e5437fd09b (diff) | |
download | python-linux-procfs-e60073b8a8f736c935706ee2227ef1fc6945c9d1.tar.gz |
interrupts: Add documentation about 'cpu' field
Reported-by: Guy Streeter <streeter@redhat.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rwxr-xr-x | procfs/procfs.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/procfs/procfs.py b/procfs/procfs.py index b1ae590..af51207 100755 --- a/procfs/procfs.py +++ b/procfs/procfs.py @@ -530,6 +530,11 @@ class interrupts: keys, with the SMP affinity mask, type of IRQ and the drivers associated with each interrupt. + The information comes from the /proc/interrupts file, documented in + 'man procfs(5)', for instance, the 'cpu' dict is an array with one entry + per CPU present in the sistem, each value being the number of interrupts + that took place per CPU. + E.g.: >>> import procfs |