Syscalls

From PS4 Developer wiki
Revision as of 14:24, 29 July 2015 by CTurt (talk | contribs) (disabled)
Jump to navigation Jump to search

PS4 kernel is based on FreeBSD 9.0; a list of FreeBSD 9.0 system calls can be found here.

Compatibility system calls, and some others, have been disabled.

The first custom Sony system call comes immediately after the last FreeBSD system call, wait6, and is number 533.

The final custom Sony system call is 617.

Calling any system calls higher than 617 gives the same result as calling a compatibility or unimplemented system call, "There is not enough free system memory" error.

Of these 85 (617 - 532), 9 always return 0x4e, ENOSYS, leaving us with just 76 which are usable (the disabled 9 may only be callable from development units).

Functions of custom Sony system calls

Known calls include those relating to:

  1. Modules
  2. Memory
  3. Sandboxing
  4. Semaphores

Other potential calls could be for:

  1. Mutexes

Other operations, such as file IO and networking are handled through regular FreeBSD system calls.

Public system calls

Number Prototype Notes
533 - -
534 - -
535 - -
536 - -
537 disabled always returns 0x4e
538 - -
539 - -
540 - -
541 - -
542 - -
543 - -
544 - -
545 - -
546 - -
547 - -
548 - -
549 - -
550 - -
551 - -
552 - -
553 - -
554 - -
555 - -
556 - -
557 - -
558 - -
559 - -
560 - -
561 - -
562 - -
563 - -
564 - -
565 - -
566 - -
567 - -
568 disabled always returns 0x4e
569 disabled always returns 0x4e
570 disabled always returns 0x4e
571 disabled always returns 0x4e
572 - -
573 disabled always returns 0x4e
574 - -
575 - -
576 - -
577 - -
578 - -
579 - -
580 - -
581 - -
582 - -
583 - -
584 - -
585 - -
586 - -
587 - -
588 - -
589 disabled always returns 0x4e
590 - -
591 - -
592 - -
593 - -
594 - -
595 - -
596 - -
597 - -
598 - -
599 - -
600 - -
601 - -
602 - -
603 - -
604 - -
605 - -
606 - -
607 - -
608 - -
609 disabled always returns 0x4e
610 disabled always returns 0x4e
611 - -
612 - -
613 - -
614 - -
615 - -
616 - -
617 - -