Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package

int imc_mem_obj_create ( size_t  nbytes  ) 

Creates an IMC shared memory region, returning a file descriptor.

nbytes The number of bytes in the requested shared memory region.
On success, imc_mem_obj_create returns a non-negative file descriptor for the shared memory region. On failure, it returns -1 and sets errno appropriately.

Definition at line 17 of file imc_mem_obj_create.c.

References imc_mem_obj_create().

Referenced by nacl::CreateMemoryObject(), and imc_mem_obj_create().

  int retval = NACL_SYSCALL(imc_mem_obj_create)(nbytes);
  if (retval < 0) {
    errno = -retval;
    return -1;
  return retval;

Generated by  Doxygen 1.6.0   Back to index