--- zzzz-none-000/linux-5.4.213/net/qrtr/qrtr.h 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/net/qrtr/qrtr.h 2024-08-14 09:02:14.000000000 +0000 @@ -8,7 +8,9 @@ /* endpoint node id auto assignment */ #define QRTR_EP_NID_AUTO (-1) +#define QRTR_EP_NET_ID_AUTO (1) +#define QRTR_DEL_PROC_MAGIC 0xe111 /** * struct qrtr_endpoint - endpoint handle * @xmit: Callback for outgoing packets @@ -23,10 +25,15 @@ struct qrtr_node *node; }; -int qrtr_endpoint_register(struct qrtr_endpoint *ep, unsigned int nid); +int qrtr_endpoint_register(struct qrtr_endpoint *ep, unsigned int net_id); void qrtr_endpoint_unregister(struct qrtr_endpoint *ep); int qrtr_endpoint_post(struct qrtr_endpoint *ep, const void *data, size_t len); +void qrtr_ns_init(void); + +void qrtr_ns_remove(void); + +int qrtr_peek_pkt_size(const void *data); #endif