kinetic-c  v0.12.0
Seagate Kinetic Protocol Client Library for C
Functions
bus_poll.c File Reference
#include "bus_poll.h"
#include "syscall.h"
#include "listener.h"
#include "util.h"
#include <assert.h>
#include <errno.h>

Go to the source code of this file.

Functions

bool BusPoll_OnCompletion (struct bus *b, int fd)
 Poll on fd until complete, return true on success or false on IO error. More...
 

Function Documentation

bool BusPoll_OnCompletion ( struct bus b,
int  fd 
)

Poll on fd until complete, return true on success or false on IO error.

(This is mostly in a distinct module to add a testing seam.)

Definition at line 35 of file bus_poll.c.

References Bus_BackpressureDelay(), BUS_LOG, BUS_LOG_SNPRINTF, LISTENER_BACKPRESSURE_SHIFT, LISTENER_MSG_TAG, LOG_SENDING_REQUEST, read_buf, syscall_poll(), syscall_read(), bus::udata, and Util_IsResumableIOError().