|
struct wimaxll_handle * | wimaxll_open (const char *device_name) |
| Open a handle to the WiMAX control interface in the kernel. More...
|
|
void * | wimaxll_priv_get (struct wimaxll_handle *) |
| Return the private data associated to a WiMAX device handle. More...
|
|
void | wimaxll_priv_set (struct wimaxll_handle *, void *) |
| Set the private data associated to a WiMAX device handle. More...
|
|
void | wimaxll_close (struct wimaxll_handle *) |
| Close a device handle opened with wimaxll_open() More...
|
|
const char * | wimaxll_ifname (const struct wimaxll_handle *) |
| Return the name of a the system's WiMAX interface associated to an open handle. More...
|
|
unsigned | wimaxll_ifidx (const struct wimaxll_handle *) |
| Return the interface index of the system's WiMAX interface associated to an open handle. More...
|
|
int | wimaxll_recv_fd (struct wimaxll_handle *) |
| Return the file descriptor associated to a WiMAX handle. More...
|
|
ssize_t | wimaxll_recv (struct wimaxll_handle *) |
| Read notifications from the WiMAX multicast group. More...
|
|
ssize_t | wimaxll_msg_write (struct wimaxll_handle *, const char *, const void *, size_t) |
| Send a driver-specific message to a WiMAX device. More...
|
|
void | wimaxll_get_cb_msg_to_user (struct wimaxll_handle *, wimaxll_msg_to_user_cb_f *, void **) |
| Get the callback and priv pointer for a MSG_TO_USER message. More...
|
|
void | wimaxll_set_cb_msg_to_user (struct wimaxll_handle *, wimaxll_msg_to_user_cb_f, void *) |
| Set the callback and priv pointer for a MSG_TO_USER message. More...
|
|
ssize_t | wimaxll_msg_read (struct wimaxll_handle *, const char *pine_name, void **) |
| Read a message from any WiMAX kernel-user pipe. More...
|
|
void | wimaxll_msg_free (void *) |
| Free a message received with wimaxll_msg_read() More...
|
|
int | wimaxll_rfkill (struct wimaxll_handle *, enum wimax_rf_state) |
| Control the software RF Kill switch and obtain switch status. More...
|
|
int | wimaxll_reset (struct wimaxll_handle *) |
| Reset a WiMAX device. More...
|
|
int | wimaxll_state_get (struct wimaxll_handle *) |
| Get Wimax device status from kernel and return it to user space. More...
|
|
void | wimaxll_get_cb_state_change (struct wimaxll_handle *, wimaxll_state_change_cb_f *, void **) |
| Get the callback and priv pointer for a WIMAX_GNL_RE_STATE_CHANGE message. More...
|
|
void | wimaxll_set_cb_state_change (struct wimaxll_handle *, wimaxll_state_change_cb_f, void *) |
| Set the callback and priv pointer for a WIMAX_GNL_RE_STATE_CHANGE message. More...
|
|
ssize_t | wimaxll_wait_for_state_change (struct wimaxll_handle *wmx, enum wimax_st *old_state, enum wimax_st *new_state) |
| Wait for an state change notification from the kernel. More...
|
|
enum wimax_st | wimaxll_state_by_name (const char *) |
|
size_t | wimaxll_states_snprintf (char *, size_t) |
|
const char * | wimaxll_state_to_name (enum wimax_st) |
|
unsigned short | wimaxll_swap_16 (unsigned short x) |
| Swap the nibbles in a 16 bit number. More...
|
|
unsigned long | wimaxll_swap_32 (unsigned long x) |
| Swap the nibbles in a 32 bit number. More...
|
|
unsigned short | wimaxll_cpu_to_le16 (unsigned short x) |
| Convert a cpu-order 16 bits to little endian. More...
|
|
unsigned short | wimaxll_le16_to_cpu (unsigned short le16) |
| Convert a little-endian 16 bits to cpu order. More...
|
|
unsigned long | wimaxll_cpu_to_le32 (unsigned long x) |
| Convert a cpu-order 32 bits to little endian. More...
|
|
unsigned long | wimaxll_le32_to_cpu (unsigned long le32) |
| Convert a little-endian 32 bits to cpu order. More...
|
|
unsigned short | wimaxll_cpu_to_be16 (unsigned short x) |
| Convert a cpu-order 16 bits to big endian. More...
|
|
unsigned short | wimaxll_be16_to_cpu (unsigned short be16) |
| Convert a big-endian 16 bits to cpu order. More...
|
|
unsigned long | wimaxll_cpu_to_be32 (unsigned long x) |
| Convert a cpu-order 32 bits to big endian. More...
|
|
unsigned long | wimaxll_be32_to_cpu (unsigned long be32) |
| Convert a big-endian 32 bits to cpu order. More...
|
|
Read notifications from the WiMAX multicast group.
- Parameters
-
- Returns
- Value returned by the callback functions (depending on the implementation of the callback). On error, a negative errno code:
-EBUSY: callback instructed to stop processing messages
Read one or more messages from a multicast group and for each valid one, execute the callbacks set in the multi cast handle.
The callbacks are expected to handle the messages and set information in the context specific to the mc handle (mch->cb_ctx). In case of any type of errors (cb_ctx.result < 0), it is expected that no resources will be tied to the context.
Referenced by wimaxll_msg_read(), and wimaxll_wait_for_state_change().