diff options
| author | Anton Ivanov <aivanov@brocade.com> | 2015-12-21 13:54:00 -0500 |
|---|---|---|
| committer | Richard Weinberger <richard@nod.at> | 2016-01-10 15:49:48 -0500 |
| commit | 8c6157b6b30a765ec233a1be5f9446f24a5283de (patch) | |
| tree | 81128a9f0252bd4075b6093cf5408eab19d45ce4 /arch/um/include/shared | |
| parent | 470a166e8c5a4da4be88545b1c4dde308abac5b2 (diff) | |
um: Update UBD to use pread/pwrite family of functions
This decreases the number of syscalls per read/write by half.
Signed-off-by: Anton Ivanov <aivanov@brocade.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/include/shared')
| -rw-r--r-- | arch/um/include/shared/os.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/um/include/shared/os.h b/arch/um/include/shared/os.h index 868e6c3f83dd..7a04ddd85334 100644 --- a/arch/um/include/shared/os.h +++ b/arch/um/include/shared/os.h | |||
| @@ -146,6 +146,8 @@ extern int os_read_file(int fd, void *buf, int len); | |||
| 146 | extern int os_write_file(int fd, const void *buf, int count); | 146 | extern int os_write_file(int fd, const void *buf, int count); |
| 147 | extern int os_sync_file(int fd); | 147 | extern int os_sync_file(int fd); |
| 148 | extern int os_file_size(const char *file, unsigned long long *size_out); | 148 | extern int os_file_size(const char *file, unsigned long long *size_out); |
| 149 | extern int os_pread_file(int fd, void *buf, int len, unsigned long long offset); | ||
| 150 | extern int os_pwrite_file(int fd, const void *buf, int count, unsigned long long offset); | ||
| 149 | extern int os_file_modtime(const char *file, unsigned long *modtime); | 151 | extern int os_file_modtime(const char *file, unsigned long *modtime); |
| 150 | extern int os_pipe(int *fd, int stream, int close_on_exec); | 152 | extern int os_pipe(int *fd, int stream, int close_on_exec); |
| 151 | extern int os_set_fd_async(int fd); | 153 | extern int os_set_fd_async(int fd); |
