Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
ecd5c982
Commit
ecd5c982
authored
Nov 02, 2014
by
Oded Gabbay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
amdkfd: Implement the Get Version IOCTL
Signed-off-by:
Oded Gabbay
<
oded.gabbay@amd.com
>
parent
775921ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
+10
-1
No files found.
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
View file @
ecd5c982
...
...
@@ -123,7 +123,16 @@ static int kfd_open(struct inode *inode, struct file *filep)
static
long
kfd_ioctl_get_version
(
struct
file
*
filep
,
struct
kfd_process
*
p
,
void
__user
*
arg
)
{
return
-
ENODEV
;
struct
kfd_ioctl_get_version_args
args
;
int
err
=
0
;
args
.
major_version
=
KFD_IOCTL_MAJOR_VERSION
;
args
.
minor_version
=
KFD_IOCTL_MINOR_VERSION
;
if
(
copy_to_user
(
arg
,
&
args
,
sizeof
(
args
)))
err
=
-
EFAULT
;
return
err
;
}
static
int
set_queue_properties_from_user
(
struct
queue_properties
*
q_properties
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment