22 static const char hw_msg[] =
"Hello world!\n";
An object interface operation.
struct arbelprm_rc_send_wqe rc
void xfer_window_changed(struct interface *intf)
Report change of flow control window.
void intf_close(struct interface *intf, int rc)
Close an object interface.
void intf_shutdown(struct interface *intf, int rc)
Shut down an object interface.
static struct interface_operation hw_xfer_operations[]
#define ref_init(refcnt, free)
Initialise a reference counter.
static void process_init(struct process *process, struct process_descriptor *desc, struct refcnt *refcnt)
Initialise process and add to process list.
void intf_plug_plug(struct interface *a, struct interface *b)
Plug two object interfaces together.
#define PROC_DESC_ONCE(object_type, process, _step)
Define a process descriptor for a process that runs only once.
void process_del(struct process *process)
Remove process from process list.
static struct interface_descriptor hw_xfer_desc
size_t xfer_window(struct interface *intf)
Check flow control window.
static const char hw_msg[]
int xfer_deliver_raw(struct interface *intf, const void *data, size_t len)
Deliver datagram as raw data without metadata.
Data transfer interfaces.
#define ENOMEM
Not enough space.
#define __unused
Declare a variable or data structure as unused.
const char * scheme
URI protocol name.
An object interface descriptor.
void * zalloc(size_t size)
Allocate cleared memory.
static int hw_open(struct interface *xfer, struct uri *uri __unused)
#define INTF_OP(op_type, object_type, op_func)
Define an object interface operation.
Data transfer interface opening.
static void hw_finished(struct hw *hw, int rc)
static void hw_step(struct hw *hw)
#define INTF_DESC(object_type, intf, operations)
Define an object interface descriptor.
static struct process_descriptor hw_process_desc
struct uri_opener hw_uri_opener __uri_opener
A Uniform Resource Identifier.
static void intf_init(struct interface *intf, struct interface_descriptor *desc, struct refcnt *refcnt)
Initialise an object interface.
#define NULL
NULL pointer (VOID *)
#define ref_put(refcnt)
Drop reference to object.