Searched refs:read (Results 1 - 25 of 30) sorted by relevance

12

/darwin-on-arm/xnu/iokit/Drivers/KernelBuiltIn/ARM/AppleARMPlatform/
H A DAppleARMCHRPNVRAM.cpp16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
50 // read
55 IOReturn AppleARMCHRPNVRAM::read(IOByteCount offset, UInt8 *buffer, function in class:AppleARMCHRPNVRAM
H A DAppleARMCHRPNVRAM.h16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
51 virtual IOReturn read(IOByteCount offset, UInt8 *buffer,
/darwin-on-arm/xnu/iokit/IOKit/nvram/
H A DIONVRAMController.h16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
43 virtual IOReturn read(IOByteCount offset, UInt8 *buffer,
/darwin-on-arm/xnu/iokit/Drivers/platform/drvAppleNVRAM/
H A DAppleNVRAM.h16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
51 virtual IOReturn read(IOByteCount offset, UInt8 *buffer,
H A DAppleNVRAM.cpp16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
77 // read
82 IOReturn AppleNVRAM::read(IOByteCount offset, UInt8 *buffer, function in class:AppleNVRAM
/darwin-on-arm/xnu/tools/tests/libMicro/apple/
H A Dlmbench_read.c16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
66 " [-f file-to-read (default %s)]\n"
68 " [-w (store a byte to each page after read)]\n"
136 if (read(ts->ts_fd, ts->ts_buf, opts) != opts) {
H A Dlmbench_bw_unix.c16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
88 size_t xfer; /* bytes to read/write per "packet" */
89 size_t bytes; /* bytes to read/write in one iteration */
256 if ((n = read(state->pipes[0], state->buf, state->xfer)) <= 0) {
328 read(controlfd, &todo, sizeof(todo));
H A Dlmbench_lat_ctx.c16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
142 if (read(rd, &msg, sizeof(msg)) != sizeof(msg)) {
143 debug("read/write on pipe");
148 debug("read/write on pipe");
316 read(p[procs-1][0], &msg, sizeof(msg)) != sizeof(msg)) {
317 debug("write/read/write on pipe");
413 debug("read/write on pipe");
416 if (read(ts->p[i][0], &msg, sizeof(msg)) != sizeof(msg)) {
417 debug("read/write on pipe");
622 debug("read/writ
[all...]
H A Dlmbench_bw_file_rd.c16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
101 static bool opti = false; // io_only or read and i/o (default read and i/o)
169 if (read(fd, buf, MIN(size, chunk)) <= 0) {
200 "notes: read and sum file via read(2) interface");
H A Dlmbench_bw_mmap_rd.c16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
106 static bool opti = false; // io_only or read and i/o (default read and i/o)
185 while ((size = read(sfd, buf, 8192)) > 0) {
218 "notes: read and sum file via memory mapping mmap(2) interface");
H A Dlmbench_select_tcp.c16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
183 read(newsock, &ts->fid, 1);
/darwin-on-arm/xnu/tools/tests/libMicro/
H A Dread.c63 " [-f file-to-read (default %s)]\n"
65 " [-w (store a byte to each page after read)]\n"
66 "notes: measures read()\n",
123 if (read(ts->ts_fd, ts->ts_buf, opts) != opts) {
H A Dpipe.c108 "notes: measures write()/read() across various transports\n",
301 n = read(s, (void *)((long)buf + total), len - total);
/darwin-on-arm/xnu/osfmk/arm/armv/
H A Dcpufunc-v7.s44 mrc p15, 0, r0, c2, c0, 0 @ arbitrary read of CP15
146 mrc p15, 1, r2, c0, c0, 0 @ read CCSIDR
188 mrc p15, 1, r2, c0, c0, 0 @ read CCSIDR
208 mrc p15, 1, r2, c0, c0, 0 @ read CCSIDR
228 mrc p15, 1, r2, c0, c0, 0 @ read CCSIDR
249 mrc p15, 1, r2, c0, c0, 0 @ read CCSIDR
290 mrc p15, 1, r0, c0, c0, 0 @ read CCSIDR
326 mrc p15, 1, r0, c0, c0, 1 @ read CLIDR
341 mrc p15, 1, r0, c0, c0, 0 @ read CCSIDR
372 mrc p15, 1, r0, c0, c0, 1 @ read CLID
[all...]
H A Dcpufunc-v6.s46 mrc p15, 0, r0, c2, c0, 0 @ arbitrary read of CP15
/darwin-on-arm/xnu/tools/tests/xnu_quick_test/
H A Dsocket_tests.c337 my_result = read( my_accepted_socket, &my_parent_buffer[11-neededBytes], neededBytes );
339 printf( "read call failed with error %d - \"%s\" \n", errno, strerror( errno) );
348 printf( "read call returned %ld bytes instead of 11\n", 11 - neededBytes );
353 printf( "read wrong sendfile message from child \n" );
361 my_result = read( my_accepted_socket, &my_parent_buffer[0], sizeof(my_parent_buffer) );
363 printf( "read call failed with error %d - \"%s\" \n", errno, strerror( errno) );
367 printf( "read wrong message from child \n" );
542 /* should be ready for read */
544 printf( "poll should have returned ready for read \n" );
548 my_count = read( my_socket
[all...]
H A Dkqueue_tests.c206 my_count = read( my_sockets[1], &my_buffer[0], 1 );
208 printf( "read call failed with error %d - \"%s\" \n", errno, strerror( errno) );
212 printf( "read call on socket failed to get \"all done\" message \n" );
230 my_count = read( my_sockets[1], &my_buffer[0], 1 );
232 printf( "read call failed with error %d - \"%s\" \n", errno, strerror( errno) );
236 printf( "read call on socket failed to get \"all done\" message \n" );
243 my_count = read( my_sockets[0], &my_buffer[0], sizeof(my_buffer) );
245 printf( "read call failed with error %d - \"%s\" \n", errno, strerror( errno) );
249 printf( "read call on socket failed to get \"ready to go message\" \n" );
H A Dmemory_tests.c311 my_result = read( my_fd, my_bufp, my_page_size );
313 printf( "read call failed with error %d - \"%s\" \n", errno, strerror( errno) );
H A Dtests.c181 * Test fsync, ftruncate, lseek, pread, pwrite, read, readv, truncate, write, writev system calls.
226 my_result = read( my_fd, my_bufp, 10);
228 printf( "read call failed with error %d - \"%s\" \n", errno, strerror( errno) );
233 printf( "read call failed - should have read 0 bytes on empty file - read %ld \n", (long int) my_result );
236 printf( "read call failed - should have read 0 bytes on empty file - read %d \n", (int) my_result );
241 /* this write should fail since we opened for read onl
[all...]
/darwin-on-arm/xnu/osfmk/i386/
H A Dlapic.h16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
178 uint32_t (*read) (lapic_register_t); member in struct:__anon934
187 #define LAPIC_READ(reg) lapic_ops->read(reg)
/darwin-on-arm/xnu/osfmk/mach/
H A Dvm32_map.defs16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
114 routine read(
/darwin-on-arm/xnu/tools/tests/superpages/
H A Dtestsp.c165 * If we allocate a 2 MB superpage read-write without specifying an address,
208 * If we allocate a superpage of any size read-write without specifying an address
234 * If we allocate a 2 MB superpage read-write at a 2 MB aligned address,
260 * If we allocate a 2 MB superpage read-write at an unaligned address,
524 /* read kernel into superpage */
525 if ((bytes = read(fd, (void*)(uintptr_t)addr1, SUPERPAGE_SIZE)) < SUPERPAGE_SIZE) {
526 sprintf(error, "short read (1)");
530 /* read kernel into base pages */
531 if ((bytes = read(fd, (void*)(uintptr_t)addr2, SUPERPAGE_SIZE)) < SUPERPAGE_SIZE) {
532 sprintf(error, "short read (
[all...]
/darwin-on-arm/xnu/bsd/kern/
H A Dtty.c16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
418 * bumping generation number so that pending read/write calls
1018 * EPERM TIOCSTI, not root, not open for read
1133 case FIONREAD: /* get # bytes to read */
1318 * Make the EXTPROC bit read only.
1671 * Flush tty read and/or write queues, notifying anyone waiting.
1931 * Process a read call on a tty device.
2017 goto read;
2032 * (m > 0 && t == 0) is the normal read case.
2042 goto read;
[all...]
/darwin-on-arm/xnu/SETUP/md/
H A Dmd.c91 char file_array[IObuffer]; /* read file and store crunched names */
325 if ((size = read(fd, file_array, sizeof (file_array))) < 0) {
327 perror("read");
/darwin-on-arm/xnu/osfmk/chud/i386/
H A Dchud_thread_i386.c16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
86 // the above are conditions where we possibly can read the kernel
117 #pragma mark **** task memory read/write ****
206 // don't try to read in the hole
265 /* read our caller */
344 /* read our caller */
447 /* read our caller */
539 // nofault read of the thread->kernel_stack pointer
599 * nofault read of the registers from the kernel stack (as they can
644 // and do a nofault read o
[all...]

Completed in 227 milliseconds

12