diff options
Diffstat (limited to 'scripts/kernel-doc')
-rwxr-xr-x | scripts/kernel-doc | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 00e21297aefe..f9460a6218de 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc | |||
@@ -1056,7 +1056,8 @@ sub output_struct_man(%) { | |||
1056 | # pointer-to-function | 1056 | # pointer-to-function |
1057 | print ".BI \" ".$1."\" ".$parameter." \") (".$2.")"."\"\n;\n"; | 1057 | print ".BI \" ".$1."\" ".$parameter." \") (".$2.")"."\"\n;\n"; |
1058 | } elsif ($type =~ m/^(.*?)\s*(:.*)/) { | 1058 | } elsif ($type =~ m/^(.*?)\s*(:.*)/) { |
1059 | print ".BI \" ".$1."\" ".$parameter.$2." \""."\"\n;\n"; | 1059 | # bitfield |
1060 | print ".BI \" ".$1."\ \" ".$parameter.$2." \""."\"\n;\n"; | ||
1060 | } else { | 1061 | } else { |
1061 | $type =~ s/([^\*])$/$1 /; | 1062 | $type =~ s/([^\*])$/$1 /; |
1062 | print ".BI \" ".$type."\" ".$parameter." \""."\"\n;\n"; | 1063 | print ".BI \" ".$type."\" ".$parameter." \""."\"\n;\n"; |
@@ -1118,7 +1119,10 @@ sub output_function_text(%) { | |||
1118 | my %args = %{$_[0]}; | 1119 | my %args = %{$_[0]}; |
1119 | my ($parameter, $section); | 1120 | my ($parameter, $section); |
1120 | 1121 | ||
1121 | print "Function:\n\n"; | 1122 | print "Name:\n\n"; |
1123 | print $args{'function'}." - ".$args{'purpose'}."\n"; | ||
1124 | |||
1125 | print "\nSynopsis:\n\n"; | ||
1122 | my $start=$args{'functiontype'}." ".$args{'function'}." ("; | 1126 | my $start=$args{'functiontype'}." ".$args{'function'}." ("; |
1123 | print $start; | 1127 | print $start; |
1124 | my $count = 0; | 1128 | my $count = 0; |
@@ -1169,6 +1173,7 @@ sub output_enum_text(%) { | |||
1169 | my $count; | 1173 | my $count; |
1170 | print "Enum:\n\n"; | 1174 | print "Enum:\n\n"; |
1171 | 1175 | ||
1176 | print "enum ".$args{'enum'}." - ".$args{'purpose'}."\n\n"; | ||
1172 | print "enum ".$args{'enum'}." {\n"; | 1177 | print "enum ".$args{'enum'}." {\n"; |
1173 | $count = 0; | 1178 | $count = 0; |
1174 | foreach $parameter (@{$args{'parameterlist'}}) { | 1179 | foreach $parameter (@{$args{'parameterlist'}}) { |
@@ -1197,7 +1202,7 @@ sub output_typedef_text(%) { | |||
1197 | my $count; | 1202 | my $count; |
1198 | print "Typedef:\n\n"; | 1203 | print "Typedef:\n\n"; |
1199 | 1204 | ||
1200 | print "typedef ".$args{'typedef'}."\n"; | 1205 | print "typedef ".$args{'typedef'}." - ".$args{'purpose'}."\n"; |
1201 | output_section_text(@_); | 1206 | output_section_text(@_); |
1202 | } | 1207 | } |
1203 | 1208 | ||
@@ -1206,7 +1211,7 @@ sub output_struct_text(%) { | |||
1206 | my %args = %{$_[0]}; | 1211 | my %args = %{$_[0]}; |
1207 | my ($parameter); | 1212 | my ($parameter); |
1208 | 1213 | ||
1209 | print $args{'type'}." ".$args{'struct'}.":\n\n"; | 1214 | print $args{'type'}." ".$args{'struct'}." - ".$args{'purpose'}."\n\n"; |
1210 | print $args{'type'}." ".$args{'struct'}." {\n"; | 1215 | print $args{'type'}." ".$args{'struct'}." {\n"; |
1211 | foreach $parameter (@{$args{'parameterlist'}}) { | 1216 | foreach $parameter (@{$args{'parameterlist'}}) { |
1212 | if ($parameter =~ /^#/) { | 1217 | if ($parameter =~ /^#/) { |