#ifndef __QRTR_H_ #define __QRTR_H_ #include struct sk_buff; /* endpoint node id auto assignment */ #define QRTR_EP_NID_AUTO (-1) /** * struct qrtr_endpoint - endpoint handle * @xmit: Callback for outgoing packets * * The socket buffer passed to the xmit function becomes owned by the endpoint * driver. As such, when the driver is done with the buffer, it should * call kfree_skb() on failure, or consume_skb() on success. */ struct qrtr_endpoint { int (*xmit)(struct qrtr_endpoint *ep, struct sk_buff *skb); /* private: not for endpoint use */ struct qrtr_node *node; }; int qrtr_endpoint_register(struct qrtr_endpoint *ep, unsigned int nid); void qrtr_endpoint_unregister(struct qrtr_endpoint *ep); int qrtr_endpoint_post(struct qrtr_endpoint *ep, const void *data, size_t len); #endif dex : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/Documentation/eisa.txt
diff options
context:
space:
mode:
authorVishal Thanki <vishalthanki@gmail.com>2016-11-16 17:01:54 +0100
committerKalle Valo <kvalo@codeaurora.org>2016-11-23 17:34:05 +0200
commita083c8fd277b4122c804f18ec8c84165f345c71c (patch)
tree156b999879c66990441e697a391d6a40e0b0c85d /Documentation/eisa.txt
parente644b88e0a2587122fd7f829ca6ec518631220ed (diff)
rt2x00: Fix incorrect usage of CONFIG_RT2X00_LIB_USB
In device removal routine, usage of "#ifdef CONFIG_RT2X00_LIB_USB" will not cover the case when it is configured as module. This will omit the entire if-block which does cleanup of URBs and cancellation of pending work. Changing the #ifdef to #if IS_ENABLED() to fix it. Signed-off-by: Vishal Thanki <vishalthanki@gmail.com> Acked-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'Documentation/eisa.txt')