Changeset fa24efa in mainline
- Timestamp:
- 2013-10-04T22:55:10Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d65be39
- Parents:
- f1d04b2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
abi/include/abi/ipc/ipc.h
rf1d04b2 rfa24efa 59 59 /** Interrupt notification */ 60 60 #define IPC_CALL_NOTIF (1 << 3) 61 62 /** 63 * Maximum buffer size allowed for IPC_M_DATA_WRITE and 64 * IPC_M_DATA_READ requests. 65 */ 66 #define DATA_XFER_LIMIT (64 * 1024) 61 67 62 68 -
kernel/generic/include/config.h
rf1d04b2 rfa24efa 47 47 #define CONFIG_TASK_NAME_BUFLEN 32 48 48 #define CONFIG_TASK_ARGUMENTS_BUFLEN 64 49 50 /**51 * Maximum buffer size allowed for IPC_M_DATA_WRITE and IPC_M_DATA_READ52 * requests.53 */54 #define DATA_XFER_LIMIT (64 * 1024)55 49 56 50 #ifndef __ASM__ -
uspace/lib/c/generic/vfs/vfs.c
rf1d04b2 rfa24efa 342 342 } 343 343 344 ssize_t read(int fildes, void *buf, size_t nbyte) 344 ssize_t read(int fildes, void *buf, size_t nbyte) 345 345 { 346 346 sysarg_t rc; … … 348 348 aid_t req; 349 349 350 if (nbyte > DATA_XFER_LIMIT) 351 nbyte = DATA_XFER_LIMIT; 352 350 353 async_exch_t *exch = vfs_exchange_begin(); 351 354 352 355 req = async_send_1(exch, VFS_IN_READ, fildes, &answer); 353 rc = async_data_read_start(exch, (void *) buf, nbyte);356 rc = async_data_read_start(exch, (void *) buf, nbyte); 354 357 if (rc != EOK) { 355 358 vfs_exchange_end(exch); … … 377 380 aid_t req; 378 381 382 if (nbyte > DATA_XFER_LIMIT) 383 nbyte = DATA_XFER_LIMIT; 384 379 385 async_exch_t *exch = vfs_exchange_begin(); 380 386 381 387 req = async_send_1(exch, VFS_IN_WRITE, fildes, &answer); 382 rc = async_data_write_start(exch, (void *) buf, nbyte);388 rc = async_data_write_start(exch, (void *) buf, nbyte); 383 389 if (rc != EOK) { 384 390 vfs_exchange_end(exch);
Note:
See TracChangeset
for help on using the changeset viewer.