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
Kirill Smelkov
linux
Commits
4793785f
Commit
4793785f
authored
Jun 07, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
http://linux-sam.bkbits.net/docbook
into home.transmeta.com:/home/torvalds/v2.5/linux
parents
91ea389c
184a56cb
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
83 additions
and
59 deletions
+83
-59
Documentation/DocBook/Makefile
Documentation/DocBook/Makefile
+31
-17
Documentation/DocBook/kernel-api.tmpl
Documentation/DocBook/kernel-api.tmpl
+2
-1
drivers/net/sis900.c
drivers/net/sis900.c
+36
-36
kernel/kmod.c
kernel/kmod.c
+1
-1
scripts/docproc.c
scripts/docproc.c
+1
-1
scripts/kernel-doc
scripts/kernel-doc
+12
-3
No files found.
Documentation/DocBook/Makefile
View file @
4793785f
...
@@ -39,8 +39,8 @@ htmldocs: $(HTML)
...
@@ -39,8 +39,8 @@ htmldocs: $(HTML)
###
###
#External programs used
#External programs used
KERNELDOC
=
$(objtree)
/
scripts/kernel-doc
KERNELDOC
=
scripts/kernel-doc
DOCPROC
=
$(objtree)
/
scripts/docproc
DOCPROC
=
scripts/docproc
###
###
# DOCPROC is used for two purposes:
# DOCPROC is used for two purposes:
...
@@ -50,14 +50,14 @@ DOCPROC=$(objtree)/scripts/docproc
...
@@ -50,14 +50,14 @@ DOCPROC=$(objtree)/scripts/docproc
# The following rules are used to generate the .sgml documentation
# The following rules are used to generate the .sgml documentation
# required to generate the final targets. (ps, pdf, html).
# required to generate the final targets. (ps, pdf, html).
quiet_cmd_docproc
=
DOCPROC
$@
quiet_cmd_docproc
=
DOCPROC
$@
cmd_docproc
=
$(DOCPROC)
doc
$<
>
$@
cmd_docproc
=
$(DOCPROC)
doc
$<
>
$@
define
rule_docproc
define
rule_docproc
set
-e
set
-e
;
\
$(if
$($(quiet)cmd_$(1)),echo
' $($(quiet)cmd_$(1))'
;)
$(if
$($(quiet)cmd_$(1)),echo
' $($(quiet)cmd_$(1))'
;)
\
$(cmd_$(1));
\
$(cmd_$(1));
\
(
\
(
\
echo 'cmd_$@
:
= $(cmd_$(1))';
\
echo 'cmd_$@
:
= $(cmd_$(1))';
\
echo $@: `$(DOCPROC) depend $<`;
\
echo $@: `$(DOCPROC) depend $<`;
\
) > $(dir $@).$(notdir $@).cmd
) > $(dir $@).$(notdir $@).cmd
endef
endef
...
@@ -96,41 +96,55 @@ $(obj)/parportbook.ps $(obj)/parportbook.pdf: $(EPS-parportbook) $(PNG-parportbo
...
@@ -96,41 +96,55 @@ $(obj)/parportbook.ps $(obj)/parportbook.pdf: $(EPS-parportbook) $(PNG-parportbo
###
###
# Rules to generate postscript, PDF and HTML
# Rules to generate postscript, PDF and HTML
# db2html creates a directory. Generate a html file used for timestamp
# db2html creates a directory. Generate a html file used for timestamp
quiet_cmd_db2ps
=
DB2PS
$@
cmd_db2ps
=
db2ps
-o
$(
dir
$@
)
$<
%.ps
:
%.sgml
%.ps
:
%.sgml
@
(
which db2ps
>
/dev/null 2>&1
)
||
\
@
(
which db2ps
>
/dev/null 2>&1
)
||
\
(
echo
"*** You need to install DocBook stylesheets ***"
;
\
(
echo
"*** You need to install DocBook stylesheets ***"
;
\
exit
1
)
exit
1
)
$(
call
do_cmd,DB2PS
$@
,db2ps
-o
$(
dir
$@
)
$<
)
$(
call
cmd,db2ps
)
quiet_cmd_db2pdf
=
DB2PDF
$@
cmd_db2pdf
=
db2pdf
-o
$(
dir
$@
)
$<
%.pdf
:
%.sgml
%.pdf
:
%.sgml
@
(
which db2pdf
>
/dev/null 2>&1
)
||
\
@
(
which db2pdf
>
/dev/null 2>&1
)
||
\
(
echo
"*** You need to install DocBook stylesheets ***"
;
\
(
echo
"*** You need to install DocBook stylesheets ***"
;
\
exit
1
)
exit
1
)
$(
call
do_cmd,DB2PDF
$@
,db2pdf
-o
$(
dir
$@
)
$<
)
$(
call
cmd,db2pdf
)
quiet_cmd_db2html
=
DB2HTML
$@
cmd_db2html
=
db2html
-o
$(
patsubst
%.html,%,
$@
)
$<
&&
\
echo
'<a HREF="
$(
patsubst
%.html,%,
$(
notdir
$@
))
/book1.html"> \
Goto
$(
patsubst
%.html,%,
$(
notdir
$@
))
</a><p>'
>
$@
%.html
:
%.sgml
%.html
:
%.sgml
@
(
which db2html
>
/dev/null 2>&1
)
||
\
@
(
which db2html
>
/dev/null 2>&1
)
||
\
(
echo
"*** You need to install DocBook stylesheets ***"
;
\
(
echo
"*** You need to install DocBook stylesheets ***"
;
\
exit
1
)
exit
1
)
@
rm
-rf
$@
$(
patsubst
%.html,%,
$@
)
@
rm
-rf
$@
$(
patsubst
%.html,%,
$@
)
$(
call
do_cmd,DB2HTML
$@
,db2html
-o
$(
patsubst
%.html,%,
$@
)
$<
&&
\
$(
call
cmd,db2html
)
echo
'<a HREF="
$(
patsubst
%.html,%,
$(
notdir
$@
))
/book1.html">\
Goto
$(
patsubst
%.html,%,
$(
notdir
$@
))
</a><p>'
>
$@
)
@
if
[
!
-z
"
$
(PNG-
$(
basename
$(
notdir
$@
))
)"
]
;
then
\
@
if
[
!
-z
"
$
(PNG-
$(
basename
$(
notdir
$@
))
)"
]
;
then
\
cp
$
(
PNG-
$(
basename
$(
notdir
$@
))
)
$(
patsubst
%.html,%,
$@
)
;
fi
cp
$
(
PNG-
$(
basename
$(
notdir
$@
))
)
$(
patsubst
%.html,%,
$@
)
;
fi
###
###
# Rules to generate postscripts and PNG imgages from .fig format files
# Rules to generate postscripts and PNG imgages from .fig format files
quiet_cmd_fig2eps
=
FIG2EPS
$@
cmd_fig2eps
=
fig2dev
-Leps
$<
$@
%.eps
:
%.fig
%.eps
:
%.fig
$(
call
do_cmd,FIG2DEV
-Leps
$@
,fig2dev
-Leps
$<
$@
)
$(
call
cmd,fig2eps
)
quiet_cmd_fig2png
=
FIG2PNG
$@
cmd_fig2png
=
fig2dev
-Lpng
$<
$@
%.png
:
%.fig
%.png
:
%.fig
$(
call
do_cmd,FIG2DEV
-Lpng
$@
,fig2dev
-Lpng
$<
$@
)
$(
call
cmd,fig2png
)
###
###
# Rule to convert a .c file to inline SGML documentation
# Rule to convert a .c file to inline SGML documentation
%.sgml
:
%.c
%.sgml
:
%.c
@
echo
' G
enerating
$@'
@
echo
' G
EN
$@'
@
(
\
@
(
\
echo
"<programlisting>"
;
\
echo
"<programlisting>"
;
\
expand
--tabs
=
8 <
$<
|
\
expand
--tabs
=
8 <
$<
|
\
...
...
Documentation/DocBook/kernel-api.tmpl
View file @
4793785f
...
@@ -79,6 +79,7 @@ KAO -->
...
@@ -79,6 +79,7 @@ KAO -->
</sect1>
</sect1>
<sect1><title>
String Manipulation
</title>
<sect1><title>
String Manipulation
</title>
!Ilib/string.c
!Ilib/string.c
!Elib/string.c
</sect1>
</sect1>
<sect1><title>
Bit Operations
</title>
<sect1><title>
Bit Operations
</title>
!Iinclude/asm-i386/bitops.h
!Iinclude/asm-i386/bitops.h
...
@@ -176,7 +177,7 @@ X!Ekernel/module.c
...
@@ -176,7 +177,7 @@ X!Ekernel/module.c
!Edrivers/pci/pci.c
!Edrivers/pci/pci.c
</sect1>
</sect1>
<sect1><title>
PCI Hotplug Support Library
</title>
<sect1><title>
PCI Hotplug Support Library
</title>
!Edrivers/hotplug/pci_hotplug_core.c
!Edrivers/
pci/
hotplug/pci_hotplug_core.c
</sect1>
</sect1>
<sect1><title>
MCA Architecture
</title>
<sect1><title>
MCA Architecture
</title>
<sect2><title>
MCA Device Functions
</title>
<sect2><title>
MCA Device Functions
</title>
...
...
drivers/net/sis900.c
View file @
4793785f
This diff is collapsed.
Click to expand it.
kernel/kmod.c
View file @
4793785f
...
@@ -58,9 +58,9 @@ char modprobe_path[256] = "/sbin/modprobe";
...
@@ -58,9 +58,9 @@ char modprobe_path[256] = "/sbin/modprobe";
* If module auto-loading support is disabled then this function
* If module auto-loading support is disabled then this function
* becomes a no-operation.
* becomes a no-operation.
*/
*/
#define MODULENAME_SIZE 32
int
request_module
(
const
char
*
fmt
,
...)
int
request_module
(
const
char
*
fmt
,
...)
{
{
#define MODULENAME_SIZE 32
va_list
args
;
va_list
args
;
char
module_name
[
MODULENAME_SIZE
];
char
module_name
[
MODULENAME_SIZE
];
unsigned
int
max_modprobes
;
unsigned
int
max_modprobes
;
...
...
scripts/docproc.c
View file @
4793785f
...
@@ -93,7 +93,7 @@ void exec_kernel_doc(char **svec)
...
@@ -93,7 +93,7 @@ void exec_kernel_doc(char **svec)
waitpid
(
pid
,
&
ret
,
0
);
waitpid
(
pid
,
&
ret
,
0
);
}
}
if
(
WIFEXITED
(
ret
))
if
(
WIFEXITED
(
ret
))
exitstatus
=
WEXITSTATUS
(
ret
);
exitstatus
|
=
WEXITSTATUS
(
ret
);
else
else
exitstatus
=
0xff
;
exitstatus
=
0xff
;
}
}
...
...
scripts/kernel-doc
View file @
4793785f
...
@@ -154,6 +154,7 @@ use strict;
...
@@ -154,6 +154,7 @@ use strict;
# '%CONST' - name of a constant.
# '%CONST' - name of a constant.
my
$errors
=
0
;
my
$errors
=
0
;
my
$warnings
=
0
;
# match expressions used to find embedded type information
# match expressions used to find embedded type information
my
$type_constant
=
'
\
%([-_
\
w]+)
';
my
$type_constant
=
'
\
%([-_
\
w]+)
';
...
@@ -1352,7 +1353,9 @@ sub create_parameterlist($$$) {
...
@@ -1352,7 +1353,9 @@ sub create_parameterlist($$$) {
"
or member '
$param
' not
"
.
"
or member '
$param
' not
"
.
"
described in '
$declaration_name
'
\n
";
"
described in '
$declaration_name
'
\n
";
}
}
++
$errors
;
print
STDERR
"
Warning(
${file}
:$.):
"
.
"
No description found for parameter '
$param
'
\n
";
++
$warnings
;
}
}
push
@parameterlist
,
$param
;
push
@parameterlist
,
$param
;
...
@@ -1456,6 +1459,12 @@ foreach (@ARGV) {
...
@@ -1456,6 +1459,12 @@ foreach (@ARGV) {
chomp
;
chomp
;
process_file
(
$_
);
process_file
(
$_
);
}
}
if
(
$verbose
&&
$errors
)
{
print
STDERR
"
$errors
errors
\n
";
}
if
(
$verbose
&&
$warnings
)
{
print
STDERR
"
$warnings
warnings
\n
";
}
exit
(
$errors
);
exit
(
$errors
);
...
@@ -1580,7 +1589,7 @@ sub process_file($) {
...
@@ -1580,7 +1589,7 @@ sub process_file($) {
}
else
{
}
else
{
print
STDERR
"
Warning(
${file}
:$.): Cannot understand
$_
on line $.
",
print
STDERR
"
Warning(
${file}
:$.): Cannot understand
$_
on line $.
",
"
- I thought it was a doc line
\n
";
"
- I thought it was a doc line
\n
";
++
$
error
s
;
++
$
warning
s
;
$state
=
0
;
$state
=
0
;
}
}
}
elsif
(
$state
==
2
)
{
# look for head: lines, and include content
}
elsif
(
$state
==
2
)
{
# look for head: lines, and include content
...
@@ -1633,7 +1642,7 @@ sub process_file($) {
...
@@ -1633,7 +1642,7 @@ sub process_file($) {
}
else
{
}
else
{
# i dont know - bad line? ignore.
# i dont know - bad line? ignore.
print
STDERR
"
Warning(
${file}
:$.): bad line:
$_
";
print
STDERR
"
Warning(
${file}
:$.): bad line:
$_
";
++
$
error
s
;
++
$
warning
s
;
}
}
}
elsif
(
$state
==
3
)
{
# scanning for function { (end of prototype)
}
elsif
(
$state
==
3
)
{
# scanning for function { (end of prototype)
if
(
$decl_type
eq
'
function
')
{
if
(
$decl_type
eq
'
function
')
{
...
...
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