… | |
… | |
247 | unsigned int eio_nready (void); /* number of not-yet handled requests */ |
247 | unsigned int eio_nready (void); /* number of not-yet handled requests */ |
248 | unsigned int eio_npending (void); /* numbe rof finished but unhandled requests */ |
248 | unsigned int eio_npending (void); /* numbe rof finished but unhandled requests */ |
249 | unsigned int eio_nthreads (void); /* number of worker threads in use currently */ |
249 | unsigned int eio_nthreads (void); /* number of worker threads in use currently */ |
250 | |
250 | |
251 | /*****************************************************************************/ |
251 | /*****************************************************************************/ |
252 | /* convinience wrappers */ |
252 | /* convenience wrappers */ |
253 | |
253 | |
254 | #ifndef EIO_NO_WRAPPERS |
254 | #ifndef EIO_NO_WRAPPERS |
255 | eio_req *eio_nop (int pri, eio_cb cb, void *data); /* does nothing except go through the whole process */ |
255 | eio_req *eio_nop (int pri, eio_cb cb, void *data); /* does nothing except go through the whole process */ |
256 | eio_req *eio_busy (eio_tstamp delay, int pri, eio_cb cb, void *data); /* ties a thread for this long, simulating busyness */ |
256 | eio_req *eio_busy (eio_tstamp delay, int pri, eio_cb cb, void *data); /* ties a thread for this long, simulating busyness */ |
257 | eio_req *eio_sync (int pri, eio_cb cb, void *data); |
257 | eio_req *eio_sync (int pri, eio_cb cb, void *data); |
… | |
… | |
289 | eio_req *eio_statvfs (const char *path, int pri, eio_cb cb, void *data); /* stat buffer=ptr2 allocated dynamically */ |
289 | eio_req *eio_statvfs (const char *path, int pri, eio_cb cb, void *data); /* stat buffer=ptr2 allocated dynamically */ |
290 | eio_req *eio_mknod (const char *path, mode_t mode, dev_t dev, int pri, eio_cb cb, void *data); |
290 | eio_req *eio_mknod (const char *path, mode_t mode, dev_t dev, int pri, eio_cb cb, void *data); |
291 | eio_req *eio_link (const char *path, const char *new_path, int pri, eio_cb cb, void *data); |
291 | eio_req *eio_link (const char *path, const char *new_path, int pri, eio_cb cb, void *data); |
292 | eio_req *eio_symlink (const char *path, const char *new_path, int pri, eio_cb cb, void *data); |
292 | eio_req *eio_symlink (const char *path, const char *new_path, int pri, eio_cb cb, void *data); |
293 | eio_req *eio_rename (const char *path, const char *new_path, int pri, eio_cb cb, void *data); |
293 | eio_req *eio_rename (const char *path, const char *new_path, int pri, eio_cb cb, void *data); |
294 | eio_req *eio_custom (eio_cb execute, int pri, eio_cb cb, void *data); |
294 | eio_req *eio_custom (void (*)(eio_req *) execute, int pri, eio_cb cb, void *data); |
295 | #endif |
295 | #endif |
296 | |
296 | |
297 | /*****************************************************************************/ |
297 | /*****************************************************************************/ |
298 | /* groups */ |
298 | /* groups */ |
299 | |
299 | |