mirror of
https://github.com/NVIDIA/open-gpu-kernel-modules.git
synced 2026-01-31 13:39:47 +00:00
580.65.06
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
|
||||
#include "linux_nvswitch.h"
|
||||
#include "nv-procfs.h"
|
||||
#include "ioctl_nvswitch.h"
|
||||
|
||||
#include <linux/fs.h>
|
||||
|
||||
@@ -60,6 +61,7 @@ nv_procfs_read_device_info
|
||||
)
|
||||
{
|
||||
NVSWITCH_DEV *nvswitch_dev = s->private;
|
||||
char uuid_string[NVSWITCH_UUID_STRING_LENGTH] = { 0 };
|
||||
|
||||
if (!nvswitch_dev)
|
||||
{
|
||||
@@ -83,6 +85,11 @@ nv_procfs_read_device_info
|
||||
seq_printf(s, "N/A\n");
|
||||
}
|
||||
|
||||
nvswitch_uuid_to_string(&nvswitch_dev->uuid, uuid_string, NVSWITCH_UUID_STRING_LENGTH);
|
||||
|
||||
seq_printf(s, "UUID: %s\n", uuid_string);
|
||||
seq_printf(s, "Physical location ID: %04x\n", nvswitch_dev->phys_id);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user