26 #define PWC_BUFFER 0x01 27 #define PWC_LEDGER 0x02 29 typedef enum pwc_cid_type_t {
37 typedef enum pwc_command_t {
46 typedef struct photon_eb_hdr_t {
54 #define EB_MSG_SIZE(s) (sizeof(struct photon_eb_hdr_t) + s + sizeof(uint8_t)) 55 #define PWC_MAX_PACKED (ALIGN(EB_MSG_SIZE(_photon_spsize + _photon_idsize), PWC_ALIGN)) 68 pwc_cid_type type, pwc_command cmd);
75 pwc_cid_type type, pwc_command cmd);
int _photon_get_with_completion(int proc, uint64_t size, photonBuffer lbuf, photonBuffer rbuf, photon_cid local, photon_cid remote, int flags, pwc_cid_type type, pwc_command cmd)
The Photon completion ID used by the PWC API.
int _photon_put_with_completion(int proc, uint64_t size, photonBuffer lbuf, photonBuffer rbuf, photon_cid local, photon_cid remote, int flags, pwc_cid_type type, pwc_command cmd)
photonRequest photon_pwc_pop_req(int proc)
struct photon_req_t * photonRequest
int photon_pwc_init(photonConfig cfg)
int _photon_probe_completion(int proc, int *flag, int *remaining, photon_cid *comp, int *src, void(*cb)(photon_cid), int flags)
int photon_pwc_register_ctype_handler(pwc_cid_type type, void *handler)
int photon_pwc_add_req(photonRequest req)