[ofa-general] [PATCH net-2.6.24] Fix documentation for dev_put()/dev_hold()
Roland Dreier
rdreier at cisco.com
Tue Sep 18 11:04:22 PDT 2007
It looks like the comments for dev_put() and dev_hold() got reversed somehow.
Signed-off-by: Roland Dreier <rolandd at 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.
More information about the general
mailing list