netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH 2/2] netdev: docbook comment update
       [not found] ` <20080923091035.102d4106@extreme>
@ 2008-09-23 16:19   ` Randy.Dunlap
  2008-09-23 17:02     ` [PATCH 2/2] netdev: docbook comment update (revised) Stephen Hemminger
  0 siblings, 1 reply; 4+ messages in thread
From: Randy.Dunlap @ 2008-09-23 16:19 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: David Miller, netdev, Randy.Dunlap

On Tue, 23 Sep 2008, Stephen Hemminger wrote:

> Add more docbook comments to network device functions and cleanup
> the comments.

Thanks!

> Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
> 
> 
> --- a/net/core/dev.c	2008-09-23 08:32:48.000000000 -0700
> +++ b/net/core/dev.c	2008-09-23 08:36:09.000000000 -0700
> @@ -3322,6 +3323,12 @@ static void dev_addr_discard(struct net_
>  	netif_addr_unlock_bh(dev);
>  }
>  
> +/**
> + *	dev_get_flags - get flags reported to userspace
> + *	@dev: device
> + *
> + *	Get the combination of flag bits exported throug API's to userspace.

                                                  through
and preferably                                            APIs


> + */
>  unsigned dev_get_flags(const struct net_device *dev)
>  {
>  	unsigned flags;
> @@ -3439,6 +3461,13 @@ int dev_set_mtu(struct net_device *dev, 
>  	return err;
>  }
>  
> +/**
> + *	dev_set_mtu - Change Media Access Control Address

Wrong func name.

> + *	@dev: device
> + *	@sa: new address
> + *
> + *	Change the hardware (MAC) address of the device
> + */
>  int dev_set_mac_address(struct net_device *dev, struct sockaddr *sa)
>  {
>  	int err;

cya,
-- 
~Randy

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 2/2] netdev: docbook comment update (revised)
  2008-09-23 16:19   ` [PATCH 2/2] netdev: docbook comment update Randy.Dunlap
@ 2008-09-23 17:02     ` Stephen Hemminger
  2008-09-23 17:12       ` Randy.Dunlap
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2008-09-23 17:02 UTC (permalink / raw)
  To: Randy.Dunlap, David Miller; +Cc: netdev

Add more docbook comments to network device functions and cleanup
the comments.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
--- a/net/core/dev.c	2008-09-23 08:32:48.000000000 -0700
+++ b/net/core/dev.c	2008-09-23 10:00:10.000000000 -0700
@@ -956,6 +956,7 @@ rollback:
  *	dev_set_alias - change ifalias of a device
  *	@dev: device
  *	@alias: name up to IFALIASZ
+ *	@len: limit of bytes to copy from info
  *
  *	Set ifalias for a device,
  */
@@ -3322,6 +3323,12 @@ static void dev_addr_discard(struct net_
 	netif_addr_unlock_bh(dev);
 }
 
+/**
+ *	dev_get_flags - get flags reported to userspace
+ *	@dev: device
+ *
+ *	Get the combination of flag bits exported throug APIs to userspace.
+ */
 unsigned dev_get_flags(const struct net_device *dev)
 {
 	unsigned flags;
@@ -3346,6 +3353,14 @@ unsigned dev_get_flags(const struct net_
 	return flags;
 }
 
+/**
+ *	dev_change_flags - change device settings
+ *	@dev: device
+ *	@flags: device state flags
+ *
+ *	Change settings on device based state flags. The flags are
+ *	in the userspace exported format.
+ */
 int dev_change_flags(struct net_device *dev, unsigned flags)
 {
 	int ret, changes;
@@ -3415,6 +3430,13 @@ int dev_change_flags(struct net_device *
 	return ret;
 }
 
+/**
+ *	dev_set_mtu - Change maximum transfer unit
+ *	@dev: device
+ *	@new_mtu: new transfer unit
+ *
+ *	Change the maximum transfer size of the network device.
+ */
 int dev_set_mtu(struct net_device *dev, int new_mtu)
 {
 	int err;
@@ -3439,6 +3461,13 @@ int dev_set_mtu(struct net_device *dev, 
 	return err;
 }
 
+/**
+ *	dev_set_mac_address - Change Media Access Control Address
+ *	@dev: device
+ *	@sa: new address
+ *
+ *	Change the hardware (MAC) address of the device
+ */
 int dev_set_mac_address(struct net_device *dev, struct sockaddr *sa)
 {
 	int err;
@@ -4342,7 +4371,12 @@ void free_netdev(struct net_device *dev)
 	put_device(&dev->dev);
 }
 
-/* Synchronize with packet receive processing. */
+/**
+ *	synchronize_net -  Synchronize with packet receive processing
+ *
+ *	Wait for packets currently being received to be done.
+ *	Does not block later packets from starting.
+ */
 void synchronize_net(void)
 {
 	might_sleep();
@@ -4644,7 +4678,7 @@ netdev_dma_event(struct dma_client *clie
 }
 
 /**
- * netdev_dma_regiser - register the networking subsystem as a DMA client
+ * netdev_dma_register - register the networking subsystem as a DMA client
  */
 static int __init netdev_dma_register(void)
 {
@@ -4745,6 +4779,14 @@ err_name:
 	return -ENOMEM;
 }
 
+/**
+ *	netdev_drivername - network driver for the device
+ *	@dev: network device
+ *	@buffer: buffer for resulting name
+ *	@len: size of buffer
+ *
+ *	Determine network driver for device.
+ */
 char *netdev_drivername(const struct net_device *dev, char *buffer, int len)
 {
 	const struct device_driver *driver;

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] netdev: docbook comment update (revised)
  2008-09-23 17:02     ` [PATCH 2/2] netdev: docbook comment update (revised) Stephen Hemminger
@ 2008-09-23 17:12       ` Randy.Dunlap
  2008-09-30  9:24         ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Randy.Dunlap @ 2008-09-23 17:12 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: Randy.Dunlap, David Miller, netdev

On Tue, 23 Sep 2008, Stephen Hemminger wrote:

> Add more docbook comments to network device functions and cleanup
> the comments.
> 
> Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
> --- a/net/core/dev.c	2008-09-23 08:32:48.000000000 -0700
> +++ b/net/core/dev.c	2008-09-23 10:00:10.000000000 -0700
> @@ -3322,6 +3323,12 @@ static void dev_addr_discard(struct net_
>  	netif_addr_unlock_bh(dev);
>  }
>  
> +/**
> + *	dev_get_flags - get flags reported to userspace
> + *	@dev: device
> + *
> + *	Get the combination of flag bits exported throug APIs to userspace.


still needs:                                      through

> + */
>  unsigned dev_get_flags(const struct net_device *dev)
>  {
>  	unsigned flags;

-- 
~Randy

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] netdev: docbook comment update (revised)
  2008-09-23 17:12       ` Randy.Dunlap
@ 2008-09-30  9:24         ` David Miller
  0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2008-09-30  9:24 UTC (permalink / raw)
  To: rdunlap; +Cc: shemminger, netdev

From: "Randy.Dunlap" <rdunlap@xenotime.net>
Date: Tue, 23 Sep 2008 10:12:04 -0700 (PDT)

> On Tue, 23 Sep 2008, Stephen Hemminger wrote:
> 
> > +/**
> > + *	dev_get_flags - get flags reported to userspace
> > + *	@dev: device
> > + *
> > + *	Get the combination of flag bits exported throug APIs to userspace.
> 
> 
> still needs:                                      through

I've applied Stephen's patch with this fix.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-09-30  9:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20080923083750.59eaac97@extreme>
     [not found] ` <20080923091035.102d4106@extreme>
2008-09-23 16:19   ` [PATCH 2/2] netdev: docbook comment update Randy.Dunlap
2008-09-23 17:02     ` [PATCH 2/2] netdev: docbook comment update (revised) Stephen Hemminger
2008-09-23 17:12       ` Randy.Dunlap
2008-09-30  9:24         ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).