xpc_interface
extern struct xpc_interface xpc_interface;
if (!xpc_interface.send)
return xpc_interface.send(partid, ch_number, flags, payload,
if (!xpc_interface.send_notify)
return xpc_interface.send_notify(partid, ch_number, flags, payload,
if (xpc_interface.received)
xpc_interface.received(partid, ch_number, payload);
if (!xpc_interface.partid_to_nasids)
return xpc_interface.partid_to_nasids(partid, nasids);
memset(&xpc_interface, 0, sizeof(xpc_interface));
if (xpc_interface.connect)
xpc_interface.connect(ch_number);
if (xpc_interface.disconnect)
xpc_interface.disconnect(ch_number);
struct xpc_interface xpc_interface = { };
EXPORT_SYMBOL_GPL(xpc_interface);
xpc_interface.connect = connect;
xpc_interface.disconnect = disconnect;
xpc_interface.send = send;
xpc_interface.send_notify = send_notify;
xpc_interface.received = received;
xpc_interface.partid_to_nasids = partid_to_nasids;