[PATCH net-2.6.24] Fix documentation for dev_put()/dev_hold()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Roland Dreier
Date: Tuesday, September 18, 2007 - 11:04 am

It looks like the comments for dev_put() and dev_hold() got reversed somehow.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
---
 include/linux/netdevice.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index be5fe05..239ae68 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1030,7 +1030,7 @@ extern int		netdev_budget;
 extern void netdev_run_todo(void);
 
 /**
- *	dev_put - get reference to device
+ *	dev_put - release reference to device
  *	@dev: network device
  *
  * Hold reference to device to keep it from being freed.
@@ -1041,7 +1041,7 @@ static inline void dev_put(struct net_device *dev)
 }
 
 /**
- *	dev_hold - release reference to device
+ *	dev_hold - get reference to device
  *	@dev: network device
  *
  * Release reference to device to allow it to be freed.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/2] IPoIB: Fix unregister_netdev hang, Krishna Kumar, (Tue Sep 18, 4:18 am)
[PATCH 2/2] IPoIB: Code cleanup, Krishna Kumar, (Tue Sep 18, 4:18 am)
Re: [PATCH 1/2] IPoIB: Fix unregister_netdev hang, Roland Dreier, (Tue Sep 18, 7:27 am)
[PATCH net-2.6.24] Fix documentation for dev_put()/dev_hold(), Roland Dreier, (Tue Sep 18, 11:04 am)
Re: [PATCH 1/2] IPoIB: Fix unregister_netdev hang, Krishna Kumar2, (Tue Sep 18, 8:23 pm)
Re: [PATCH 1/2] IPoIB: Fix unregister_netdev hang, Roland Dreier, (Tue Sep 18, 8:30 pm)
Re: [PATCH 1/2] IPoIB: Fix unregister_netdev hang, Krishna Kumar2, (Tue Sep 18, 9:24 pm)