Searched refs:pipesize_blocks (Results 1 - 2 of 2) sorted by relevance

/darwin-on-arm/xnu/tools/tests/xnu_quick_test/
H A Dpipes_tests.c500 const unsigned int pipesize_blocks[] = {128,256,1024,2048,PAGE_SIZE,PAGE_SIZE*2,PAGE_SIZE*4}; variable
750 for ( iter=0; iter < sizeof(pipesize_blocks)/sizeof(unsigned int); iter++){
751 assert(pipesize_blocks[iter] == pipe_write_data(p, &data[0], pipesize_blocks[iter] ), 1, "expansion write failed");
752 assert(pipesize_blocks[iter] == pipe_read_data(p, &readbuf[0], pipesize_blocks[iter]+200), 1, "reading from expanded data failed");
753 /* logv("finished round for size %u \n", pipesize_blocks[iter]); */
/darwin-on-arm/xnu/bsd/kern/
H A Dsys_pipe.c319 static const unsigned int pipesize_blocks[] = {128,256,1024,2048,PAGE_SIZE, PAGE_SIZE * 2, PIPE_SIZE , PIPE_SIZE * 4 }; variable
322 * finds the right size from possible sizes in pipesize_blocks
328 int i = sizeof(pipesize_blocks)/sizeof(unsigned int) -1;
336 while ( i >0 && pipesize_blocks[i-1] > target) {
341 return pipesize_blocks[i];
526 pipe_size = MAX(PIPE_SIZE, pipesize_blocks[0]);

Completed in 106 milliseconds