mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
gpu: nvgpu: track opened Linux ctrl files
An upcoming patch will need to enumerate opened ctrl nodes; track them in a list, protected by a mutex. Bug 200145225 Change-Id: I50dc15056832a3bb53fbdd7bd2bffcdaecc7b21c Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1811840 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
fddb296924
commit
d53495400e
@@ -65,6 +65,10 @@ struct nvgpu_os_linux {
|
||||
struct {
|
||||
struct cdev cdev;
|
||||
struct device *node;
|
||||
/* see gk20a_ctrl_priv */
|
||||
struct nvgpu_list_node privs;
|
||||
/* guards modifications to the list and its contents */
|
||||
struct nvgpu_mutex privs_lock;
|
||||
} ctrl;
|
||||
|
||||
struct {
|
||||
|
||||
Reference in New Issue
Block a user