Thread (95 messages) 95 messages, 9 authors, 2008-12-04

Re: [PATCH 04/39] wimax: internal API for the kernel space WiMAX stack

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2008-11-27 09:45:16

On Wed, 2008-11-26 at 15:07 -0800, Inaky Perez-Gonzalez wrote:
+static inline __must_check
+int wimax_dev_is_ready(struct wimax_dev *wimax_dev)
+{
+	if (wimax_dev->state == __WIMAX_ST_NULL)
+		return -EINVAL;	/* Device is not even registered! */
+	if (wimax_dev->state == WIMAX_ST_DOWN)
+		return -ENOMEDIUM;
ENOLINK seems more appropriate?

+/*
+ * The concept of a pipe -- we encapsulate it because we want to
+ * detach the usage of it from the implementation, and thus it serves
+ * just as a handle.
Might help to explain just what the concept is :)

johannes

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help