aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_module.c
diff options
context:
space:
mode:
authorAlfred Perlstein <alfred@FreeBSD.org>2002-12-13 22:41:47 +0000
committerAlfred Perlstein <alfred@FreeBSD.org>2002-12-13 22:41:47 +0000
commitbc9e75d7cab11c087b5cda04d0981440d331db78 (patch)
treea1ef524330ea7e253fb665abea3ddb594cde69fc /sys/kern/kern_module.c
parent0bbe7292e1ff4d583674cd029cf940aede2f5eec (diff)
downloadsrc-bc9e75d7cab11c087b5cda04d0981440d331db78.tar.gz
src-bc9e75d7cab11c087b5cda04d0981440d331db78.zip
Backout removal SCARGS, the code freeze is only "selectively" over.
Notes
Notes: svn path=/head/; revision=107839
Diffstat (limited to 'sys/kern/kern_module.c')
-rw-r--r--sys/kern/kern_module.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/kern/kern_module.c b/sys/kern/kern_module.c
index e39f56aec03e..74a0259e58fd 100644
--- a/sys/kern/kern_module.c
+++ b/sys/kern/kern_module.c
@@ -259,7 +259,7 @@ modnext(struct thread *td, struct modnext_args *uap)
td->td_retval[0] = -1;
MOD_SLOCK;
- if (uap->modid == 0) {
+ if (SCARG(uap, modid) == 0) {
mod = TAILQ_FIRST(&modules);
if (mod)
td->td_retval[0] = mod->id;
@@ -267,7 +267,7 @@ modnext(struct thread *td, struct modnext_args *uap)
error = ENOENT;
goto done2;
}
- mod = module_lookupbyid(uap->modid);
+ mod = module_lookupbyid(SCARG(uap, modid));
if (mod == NULL) {
error = ENOENT;
goto done2;
@@ -293,7 +293,7 @@ modfnext(struct thread *td, struct modfnext_args *uap)
td->td_retval[0] = -1;
MOD_SLOCK;
- mod = module_lookupbyid(uap->modid);
+ mod = module_lookupbyid(SCARG(uap, modid));
if (mod == NULL) {
error = ENOENT;
} else {
@@ -328,7 +328,7 @@ modstat(struct thread *td, struct modstat_args *uap)
char *name;
MOD_SLOCK;
- mod = module_lookupbyid(uap->modid);
+ mod = module_lookupbyid(SCARG(uap, modid));
if (mod == NULL) {
MOD_SUNLOCK;
return (ENOENT);
@@ -338,7 +338,7 @@ modstat(struct thread *td, struct modstat_args *uap)
name = mod->name;
data = mod->data;
MOD_SUNLOCK;
- stat = uap->stat;
+ stat = SCARG(uap, stat);
/*
* Check the version of the user's structure.
@@ -380,7 +380,7 @@ modfind(struct thread *td, struct modfind_args *uap)
char name[MAXMODNAME];
module_t mod;
- if ((error = copyinstr(uap->name, name, sizeof name, 0)) != 0)
+ if ((error = copyinstr(SCARG(uap, name), name, sizeof name, 0)) != 0)
return (error);
MOD_SLOCK;