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
bc92c8d8
Commit
bc92c8d8
authored
Feb 17, 2003
by
Alan Cox
Committed by
Linus Torvalds
Feb 17, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] add new settings locks to ide-proc
parent
16ba73f3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
drivers/ide/ide-proc.c
drivers/ide/ide-proc.c
+8
-1
No files found.
drivers/ide/ide-proc.c
View file @
bc92c8d8
...
...
@@ -454,6 +454,7 @@ int proc_ide_read_settings
char
*
out
=
page
;
int
len
,
rc
,
mul_factor
,
div_factor
;
down
(
&
ide_setting_sem
);
out
+=
sprintf
(
out
,
"name
\t\t\t
value
\t\t
min
\t\t
max
\t\t
mode
\n
"
);
out
+=
sprintf
(
out
,
"----
\t\t\t
-----
\t\t
---
\t\t
---
\t\t
----
\n
"
);
while
(
setting
)
{
...
...
@@ -473,6 +474,7 @@ int proc_ide_read_settings
setting
=
setting
->
next
;
}
len
=
out
-
page
;
up
(
&
ide_setting_sem
);
PROC_IDE_READ_RETURN
(
page
,
start
,
off
,
count
,
eof
,
len
);
}
...
...
@@ -541,12 +543,17 @@ int proc_ide_write_settings
--
n
;
++
p
;
}
down
(
&
ide_setting_sem
);
setting
=
ide_find_setting_by_name
(
drive
,
name
);
if
(
!
setting
)
{
up
(
&
ide_setting_sem
);
goto
parse_error
;
}
if
(
for_real
)
ide_write_setting
(
drive
,
setting
,
val
*
setting
->
div_factor
/
setting
->
mul_factor
);
up
(
&
ide_setting_sem
);
}
}
while
(
!
for_real
++
);
return
count
;
...
...
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