diff options
| author | Burt P <pburt0@gmail.com> | 2018-05-19 10:46:40 -0500 | 
|---|---|---|
| committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2018-05-25 12:32:53 -0700 | 
| commit | 06cb70200742dad08de5e89b275a73b7c0b0f37b (patch) | |
| tree | 6627dd0141e433b19466439a178a6de7ab086ba8 /includes | |
| parent | fba494e2acef6d968b8f6058b5392b0addde3374 (diff) | |
gpu_util.c: add nvidia specific information from procfs
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/gpu_util.h | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/includes/gpu_util.h b/includes/gpu_util.h index 535fb6e8..be69e941 100644 --- a/includes/gpu_util.h +++ b/includes/gpu_util.h @@ -23,6 +23,12 @@  #include "pci_util.h"  #include "dt_util.h" +typedef struct nvgpu { +    char *model; +    char *bios_version; +    char *uuid; +} nvgpu; +  typedef struct gpud {      char *id; /* ours */      char *nice_name; @@ -36,6 +42,7 @@ typedef struct gpud {      char *dt_compat;      const char *dt_vendor, *dt_device; +    nvgpu *nv_info;      /* ... */      struct gpud *next; /* this is a linked list */ | 
