Skip to content

Latest commit

 

History

History
97 lines (80 loc) · 4.1 KB

syscalls.md

File metadata and controls

97 lines (80 loc) · 4.1 KB

Magenta System Calls

Handles

Objects

  • object_bind_exception_port - attach an exception port to a task
  • object_get_child - find the child of an object by its koid
  • object_get_info - obtain information about an object
  • object_get_property - read an object property
  • object_set_property - modify an object property
  • object_signal - set or clear the user signals on a handle

Threads

  • thread_arch_prctl - deprecated
  • thread_create - create a new thread within a process
  • thread_exit - exit the current thread
  • thread_read_state - read register state from a thread
  • thread_start - cause a new thread to start executing
  • thread_write_state - modify register state of a thread

Processes

  • process_create - create a new process within a job
  • process_map_vm - map a VMO into a process
  • process_protect_vm - adjust memory access permissions
  • process_read_memory - read from a process's address space
  • process_start - cause a new process to start executing
  • process_unmap_vm - unmap a memory region from a process
  • process_write_memory - write to a process's address space

Jobs

  • job_create - create a new job within a job

Tasks (Task, Process, or Job)

  • task_resume - cause a suspended task to continue running
  • task_kill - cause a task to stop running

Channels

Sockets

  • socket_create - create a new socket
  • socket_write - write data to a socket
  • socket_read - read data from a socket

Events and Event Pairs

Wait Sets

Ports

Futexes

Virtual Memory Objects (VMOs)

  • vmo_create - create a new vmo
  • vmo_read - read from a vmo
  • vmo_write - write to a vmo
  • vmo_get_size - obtain the size of a vmo
  • vmo_set_size - adjust the size of a vmo
  • vmo_op_range

Cryptographically Secure RNG

Time

Data Pipes