aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRandy Dunlap <randy.dunlap@oracle.com>2008-02-13 18:03:25 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-13 19:21:19 -0500
commitbc2cda1ebd4430f55deb60f0193a3e3b835499a2 (patch)
treec9f6a03a04a6540822abc693395261b035dcb045
parent65b6e42cdc5b6a1ce2ada31cc294d7e60b22bb43 (diff)
docbook: make a networking book and fix a few errors
Move networking (core and drivers) docbook to its own networking book. Fix a few kernel-doc errors in header and source files. Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Cc: Trond Myklebust <trond.myklebust@fys.uio.no> Cc: "J. Bruce Fields" <bfields@fieldses.org> Cc: Neil Brown <neilb@suse.de> Cc: "David S. Miller" <davem@davemloft.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--Documentation/DocBook/Makefile2
-rw-r--r--Documentation/DocBook/kernel-api.tmpl65
-rw-r--r--Documentation/DocBook/networking.tmpl106
-rw-r--r--include/linux/etherdevice.h3
-rw-r--r--net/core/dev.c3
-rw-r--r--net/core/skbuff.c4
6 files changed, 111 insertions, 72 deletions
diff --git a/Documentation/DocBook/Makefile b/Documentation/DocBook/Makefile
index 6a0ad4715e9f..300e1707893f 100644
--- a/Documentation/DocBook/Makefile
+++ b/Documentation/DocBook/Makefile
@@ -8,7 +8,7 @@
8 8
9DOCBOOKS := wanbook.xml z8530book.xml mcabook.xml videobook.xml \ 9DOCBOOKS := wanbook.xml z8530book.xml mcabook.xml videobook.xml \
10 kernel-hacking.xml kernel-locking.xml deviceiobook.xml \ 10 kernel-hacking.xml kernel-locking.xml deviceiobook.xml \
11 procfs-guide.xml writing_usb_driver.xml \ 11 procfs-guide.xml writing_usb_driver.xml networking.xml \
12 kernel-api.xml filesystems.xml lsm.xml usb.xml \ 12 kernel-api.xml filesystems.xml lsm.xml usb.xml \
13 gadget.xml libata.xml mtdnand.xml librs.xml rapidio.xml \ 13 gadget.xml libata.xml mtdnand.xml librs.xml rapidio.xml \
14 genericirq.xml s390-drivers.xml uio-howto.xml scsi.xml 14 genericirq.xml s390-drivers.xml uio-howto.xml scsi.xml
diff --git a/Documentation/DocBook/kernel-api.tmpl b/Documentation/DocBook/kernel-api.tmpl
index 6c0e5f018615..7e054c9124e6 100644
--- a/Documentation/DocBook/kernel-api.tmpl
+++ b/Documentation/DocBook/kernel-api.tmpl
@@ -204,71 +204,6 @@ X!Ilib/string.c
204 </sect1> 204 </sect1>
205 </chapter> 205 </chapter>
206 206
207 <chapter id="netcore">
208 <title>Linux Networking</title>
209 <sect1><title>Networking Base Types</title>
210!Iinclude/linux/net.h
211 </sect1>
212 <sect1><title>Socket Buffer Functions</title>
213!Iinclude/linux/skbuff.h
214!Iinclude/net/sock.h
215!Enet/socket.c
216!Enet/core/skbuff.c
217!Enet/core/sock.c
218!Enet/core/datagram.c
219!Enet/core/stream.c
220 </sect1>
221 <sect1><title>Socket Filter</title>
222!Enet/core/filter.c
223 </sect1>
224 <sect1><title>Generic Network Statistics</title>
225!Iinclude/linux/gen_stats.h
226!Enet/core/gen_stats.c
227!Enet/core/gen_estimator.c
228 </sect1>
229 <sect1><title>SUN RPC subsystem</title>
230<!-- The !D functionality is not perfect, garbage has to be protected by comments
231!Dnet/sunrpc/sunrpc_syms.c
232-->
233!Enet/sunrpc/xdr.c
234!Enet/sunrpc/svc_xprt.c
235!Enet/sunrpc/xprt.c
236!Enet/sunrpc/sched.c
237!Enet/sunrpc/socklib.c
238!Enet/sunrpc/stats.c
239!Enet/sunrpc/rpc_pipe.c
240!Enet/sunrpc/rpcb_clnt.c
241!Enet/sunrpc/clnt.c
242 </sect1>
243 </chapter>
244
245 <chapter id="netdev">
246 <title>Network device support</title>
247 <sect1><title>Driver Support</title>
248!Enet/core/dev.c
249!Enet/ethernet/eth.c
250!Enet/sched/sch_generic.c
251!Iinclude/linux/etherdevice.h
252!Iinclude/linux/netdevice.h
253 </sect1>
254 <sect1><title>PHY Support</title>
255!Edrivers/net/phy/phy.c
256!Idrivers/net/phy/phy.c
257!Edrivers/net/phy/phy_device.c
258!Idrivers/net/phy/phy_device.c
259!Edrivers/net/phy/mdio_bus.c
260!Idrivers/net/phy/mdio_bus.c
261 </sect1>
262<!-- FIXME: Removed for now since no structured comments in source
263 <sect1><title>Wireless</title>
264X!Enet/core/wireless.c
265 </sect1>
266-->
267 <sect1><title>Synchronous PPP</title>
268!Edrivers/net/wan/syncppp.c
269 </sect1>
270 </chapter>
271
272 <chapter id="modload"> 207 <chapter id="modload">
273 <title>Module Support</title> 208 <title>Module Support</title>
274 <sect1><title>Module Loading</title> 209 <sect1><title>Module Loading</title>
diff --git a/Documentation/DocBook/networking.tmpl b/Documentation/DocBook/networking.tmpl
new file mode 100644
index 000000000000..f24f9e85e4ae
--- /dev/null
+++ b/Documentation/DocBook/networking.tmpl
@@ -0,0 +1,106 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" []>
4
5<book id="LinuxNetworking">
6 <bookinfo>
7 <title>Linux Networking and Network Devices APIs</title>
8
9 <legalnotice>
10 <para>
11 This documentation is free software; you can redistribute
12 it and/or modify it under the terms of the GNU General Public
13 License as published by the Free Software Foundation; either
14 version 2 of the License, or (at your option) any later
15 version.
16 </para>
17
18 <para>
19 This program is distributed in the hope that it will be
20 useful, but WITHOUT ANY WARRANTY; without even the implied
21 warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22 See the GNU General Public License for more details.
23 </para>
24
25 <para>
26 You should have received a copy of the GNU General Public
27 License along with this program; if not, write to the Free
28 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
29 MA 02111-1307 USA
30 </para>
31
32 <para>
33 For more details see the file COPYING in the source
34 distribution of Linux.
35 </para>
36 </legalnotice>
37 </bookinfo>
38
39<toc></toc>
40
41 <chapter id="netcore">
42 <title>Linux Networking</title>
43 <sect1><title>Networking Base Types</title>
44!Iinclude/linux/net.h
45 </sect1>
46 <sect1><title>Socket Buffer Functions</title>
47!Iinclude/linux/skbuff.h
48!Iinclude/net/sock.h
49!Enet/socket.c
50!Enet/core/skbuff.c
51!Enet/core/sock.c
52!Enet/core/datagram.c
53!Enet/core/stream.c
54 </sect1>
55 <sect1><title>Socket Filter</title>
56!Enet/core/filter.c
57 </sect1>
58 <sect1><title>Generic Network Statistics</title>
59!Iinclude/linux/gen_stats.h
60!Enet/core/gen_stats.c
61!Enet/core/gen_estimator.c
62 </sect1>
63 <sect1><title>SUN RPC subsystem</title>
64<!-- The !D functionality is not perfect, garbage has to be protected by comments
65!Dnet/sunrpc/sunrpc_syms.c
66-->
67!Enet/sunrpc/xdr.c
68!Enet/sunrpc/svc_xprt.c
69!Enet/sunrpc/xprt.c
70!Enet/sunrpc/sched.c
71!Enet/sunrpc/socklib.c
72!Enet/sunrpc/stats.c
73!Enet/sunrpc/rpc_pipe.c
74!Enet/sunrpc/rpcb_clnt.c
75!Enet/sunrpc/clnt.c
76 </sect1>
77 </chapter>
78
79 <chapter id="netdev">
80 <title>Network device support</title>
81 <sect1><title>Driver Support</title>
82!Enet/core/dev.c
83!Enet/ethernet/eth.c
84!Enet/sched/sch_generic.c
85!Iinclude/linux/etherdevice.h
86!Iinclude/linux/netdevice.h
87 </sect1>
88 <sect1><title>PHY Support</title>
89!Edrivers/net/phy/phy.c
90!Idrivers/net/phy/phy.c
91!Edrivers/net/phy/phy_device.c
92!Idrivers/net/phy/phy_device.c
93!Edrivers/net/phy/mdio_bus.c
94!Idrivers/net/phy/mdio_bus.c
95 </sect1>
96<!-- FIXME: Removed for now since no structured comments in source
97 <sect1><title>Wireless</title>
98X!Enet/core/wireless.c
99 </sect1>
100-->
101 <sect1><title>Synchronous PPP</title>
102!Edrivers/net/wan/syncppp.c
103 </sect1>
104 </chapter>
105
106</book>
diff --git a/include/linux/etherdevice.h b/include/linux/etherdevice.h
index b7558ec81ed5..25d62e6e3290 100644
--- a/include/linux/etherdevice.h
+++ b/include/linux/etherdevice.h
@@ -70,8 +70,7 @@ static inline int is_multicast_ether_addr(const u8 *addr)
70} 70}
71 71
72/** 72/**
73 * is_local_ether_addr - Determine if the Ethernet address is locally-assigned 73 * is_local_ether_addr - Determine if the Ethernet address is locally-assigned one (IEEE 802).
74 * one (IEEE 802).
75 * @addr: Pointer to a six-byte array containing the Ethernet address 74 * @addr: Pointer to a six-byte array containing the Ethernet address
76 * 75 *
77 * Return true if the address is a local address. 76 * Return true if the address is a local address.
diff --git a/net/core/dev.c b/net/core/dev.c
index b2f6cb5e0f72..b3e19ae57f95 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -3038,8 +3038,7 @@ int dev_unicast_sync(struct net_device *to, struct net_device *from)
3038EXPORT_SYMBOL(dev_unicast_sync); 3038EXPORT_SYMBOL(dev_unicast_sync);
3039 3039
3040/** 3040/**
3041 * dev_unicast_unsync - Remove synchronized addresses from the destination 3041 * dev_unicast_unsync - Remove synchronized addresses from the destination device
3042 * device
3043 * @to: destination device 3042 * @to: destination device
3044 * @from: source device 3043 * @from: source device
3045 * 3044 *
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index 4e354221ec23..cfc07dac636c 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -1907,11 +1907,11 @@ void skb_prepare_seq_read(struct sk_buff *skb, unsigned int from,
1907 * of bytes already consumed and the next call to 1907 * of bytes already consumed and the next call to
1908 * skb_seq_read() will return the remaining part of the block. 1908 * skb_seq_read() will return the remaining part of the block.
1909 * 1909 *
1910 * Note: The size of each block of data returned can be arbitary, 1910 * Note 1: The size of each block of data returned can be arbitary,
1911 * this limitation is the cost for zerocopy seqeuental 1911 * this limitation is the cost for zerocopy seqeuental
1912 * reads of potentially non linear data. 1912 * reads of potentially non linear data.
1913 * 1913 *
1914 * Note: Fragment lists within fragments are not implemented 1914 * Note 2: Fragment lists within fragments are not implemented
1915 * at the moment, state->root_skb could be replaced with 1915 * at the moment, state->root_skb could be replaced with
1916 * a stack for this purpose. 1916 * a stack for this purpose.
1917 */ 1917 */