Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidSystemCore
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemCore
Commits
91e5551f
Commit
91e5551f
authored
13 years ago
by
Jean-Baptiste Queru
Committed by
android code review
13 years ago
Browse files
Options
Downloads
Plain Diff
Merge "toolbox: rmmod: fix module unloading"
parents
ff856a2b
fc26c0ba
Branches
ics-plus-aosp
tools_r20
Branches containing commit
Tags
android-sdk-adt_r20
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
toolbox/rmmod.c
+10
-1
10 additions, 1 deletion
toolbox/rmmod.c
with
10 additions
and
1 deletion
toolbox/rmmod.c
+
10
−
1
View file @
91e5551f
...
...
@@ -10,7 +10,7 @@ extern int delete_module(const char *, unsigned int);
int
rmmod_main
(
int
argc
,
char
**
argv
)
{
int
ret
;
int
ret
,
i
;
char
*
modname
,
*
dot
;
/* make sure we've got an argument */
...
...
@@ -31,6 +31,15 @@ int rmmod_main(int argc, char **argv)
if
(
dot
)
*
dot
=
'\0'
;
/* Replace "-" with "_". This would keep rmmod
* compatible with module-init-tools version of
* rmmod
*/
for
(
i
=
0
;
modname
[
i
]
!=
'\0'
;
i
++
)
{
if
(
modname
[
i
]
==
'-'
)
modname
[
i
]
=
'_'
;
}
/* pass it to the kernel */
ret
=
delete_module
(
modname
,
O_NONBLOCK
|
O_EXCL
);
if
(
ret
!=
0
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment