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
8ef26e17
Commit
8ef26e17
authored
Dec 29, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://kernel.bkbits.net/gregkh/linux/tty-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux
parents
b8d399ae
ae52cf5c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
17 deletions
+7
-17
include/linux/module.h
include/linux/module.h
+5
-2
kernel/module.c
kernel/module.c
+2
-15
No files found.
include/linux/module.h
View file @
8ef26e17
...
...
@@ -285,7 +285,9 @@ static inline const char *module_address_lookup(unsigned long addr,
}
#endif
/* CONFIG_MODULES */
#if defined(MODULE) && defined(KBUILD_MODNAME)
#ifdef MODULE
extern
struct
module
__this_module
;
#ifdef KBUILD_MODNAME
/* We make the linker do some of the work. */
struct
module
__this_module
__attribute__
((
section
(
".gnu.linkonce.this_module"
)))
=
{
...
...
@@ -296,7 +298,8 @@ __attribute__((section(".gnu.linkonce.this_module"))) = {
.
exit
=
cleanup_module
,
#endif
};
#endif
/* MODULE && KBUILD_MODNAME */
#endif
/* KBUILD_MODNAME */
#endif
/* MODULE */
/* For archs to search exception tables */
extern
struct
list_head
extables
;
...
...
kernel/module.c
View file @
8ef26e17
...
...
@@ -569,20 +569,6 @@ static int param_set_byte(const char *val, struct kernel_param *kp)
return
0
;
}
static
int
param_string
(
const
char
*
name
,
const
char
*
val
,
unsigned
int
min
,
unsigned
int
max
,
char
*
dest
)
{
if
(
strlen
(
val
)
<
min
||
strlen
(
val
)
>
max
)
{
printk
(
KERN_ERR
"Parameter %s length must be %u-%u characters
\n
"
,
name
,
min
,
max
);
return
-
EINVAL
;
}
strcpy
(
dest
,
val
);
return
0
;
}
extern
int
set_obsolete
(
const
char
*
val
,
struct
kernel_param
*
kp
)
{
unsigned
int
min
,
max
;
...
...
@@ -618,7 +604,8 @@ extern int set_obsolete(const char *val, struct kernel_param *kp)
return
param_array
(
kp
->
name
,
val
,
min
,
max
,
obsparm
->
addr
,
sizeof
(
long
),
param_set_long
);
case
's'
:
return
param_string
(
kp
->
name
,
val
,
min
,
max
,
obsparm
->
addr
);
return
param_array
(
kp
->
name
,
val
,
min
,
max
,
obsparm
->
addr
,
sizeof
(
char
*
),
param_set_charp
);
}
printk
(
KERN_ERR
"Unknown obsolete parameter type %s
\n
"
,
obsparm
->
type
);
return
-
EINVAL
;
...
...
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