diff options
| author | Joshua Bakita <jbakita@cs.unc.edu> | 2024-04-13 14:20:53 -0400 |
|---|---|---|
| committer | Joshua Bakita <jbakita@cs.unc.edu> | 2024-04-13 14:20:53 -0400 |
| commit | 6bdc90abdd034aeaff53f87951b7e89016619cde (patch) | |
| tree | 8bde02b065fec19df18afb5c21e291bd6e046ea5 /device_info_procfs.c | |
| parent | 6c8c5c70a885395afae4e7dd49d6abd9c470bc9e (diff) | |
Misc non-functional cleanup and documentation
Diffstat (limited to 'device_info_procfs.c')
| -rw-r--r-- | device_info_procfs.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/device_info_procfs.c b/device_info_procfs.c index c8903fc..ce5843f 100644 --- a/device_info_procfs.c +++ b/device_info_procfs.c | |||
| @@ -23,6 +23,11 @@ static ssize_t nvdebug_reg32_read(struct file *f, char __user *buf, size_t size, | |||
| 23 | return chars_written; | 23 | return chars_written; |
| 24 | } | 24 | } |
| 25 | 25 | ||
| 26 | struct file_operations nvdebug_read_reg32_file_ops = { | ||
| 27 | .read = nvdebug_reg32_read, | ||
| 28 | .llseek = default_llseek, | ||
| 29 | }; | ||
| 30 | |||
| 26 | static ssize_t nvdebug_reg_range_read(struct file *f, char __user *buf, size_t size, loff_t *off) { | 31 | static ssize_t nvdebug_reg_range_read(struct file *f, char __user *buf, size_t size, loff_t *off) { |
| 27 | char out[12]; | 32 | char out[12]; |
| 28 | int chars_written; | 33 | int chars_written; |
| @@ -49,11 +54,6 @@ static ssize_t nvdebug_reg_range_read(struct file *f, char __user *buf, size_t s | |||
| 49 | return chars_written; | 54 | return chars_written; |
| 50 | } | 55 | } |
| 51 | 56 | ||
| 52 | struct file_operations nvdebug_read_reg32_file_ops = { | ||
| 53 | .read = nvdebug_reg32_read, | ||
| 54 | .llseek = default_llseek, | ||
| 55 | }; | ||
| 56 | |||
| 57 | // Generic mechanism used for printing a subset of bits from a register | 57 | // Generic mechanism used for printing a subset of bits from a register |
| 58 | // Please store a `union reg_range` rather than a `uintptr_t` in the pde_data | 58 | // Please store a `union reg_range` rather than a `uintptr_t` in the pde_data |
| 59 | struct file_operations nvdebug_read_reg_range_file_ops = { | 59 | struct file_operations nvdebug_read_reg_range_file_ops = { |
