haiku/headers/os/drivers/io_requests.h
Axel Dörfler 533cba7eff bonefish + axeld:
* Reverted r31809 as it introduced a race condition; if the I/O request had been
  notified, it could already been deleted at that point.
* Instead, we need to notify the request in each file system/driver that uses
  it. Added new notify_io_request() function that does that exactly.
* Added a TODO comment to the userlandfs where the request notification needs
  a bit more thought.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31903 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-29 12:16:15 +00:00

31 lines
468 B
C

/*
* Copyright 2009, Haiku Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _IO_REQUESTS_H
#define _IO_REQUESTS_H
/*! I/O request interface */
#include <SupportDefs.h>
typedef struct IORequest io_request;
#ifdef __cplusplus
extern "C" {
#endif
bool io_request_is_write(const io_request* request);
void notify_io_request(io_request* request, status_t status);
#ifdef __cplusplus
}
#endif
#endif /* _IO_REQUESTS_H */