Syscalls: Difference between revisions

From PS4 Developer wiki
Jump to navigation Jump to search
m (base of table)
m (complete table)
Line 32: Line 32:
! Number !! Prototype !! Notes !!  
! Number !! Prototype !! Notes !!  
|-
|-
| 533 || - || -
| 533 || - || -
|-
|-
| 534 || - || -
| 534 || - || -
|-
|-
| 535 || - ||  -
| 535 || - ||  -
|-
| 536 || - ||  -
|-
| 537 || - ||  -
|-
| 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 || - ||  -
|-
| 569 || - ||  -
|-
| 570 || - ||  -
|-
| 571 || - ||  -
|-
| 572 || - ||  -
|-
| 573 || - ||  -
|-
| 574 || - ||  -
|-
| 575 || - ||  -
|-
| 576 || - ||  -
|-
| 577 || - ||  -
|-
| 578 || - ||  -
|-
| 579 || - ||  -
|-
| 580 || - ||  -
|-
| 581 || - ||  -
|-
| 582 || - ||  -
|-
| 583 || - ||  -
|-
| 584 || - ||  -
|-
| 585 || - ||  -
|-
| 586 || - ||  -
|-
| 587 || - ||  -
|-
| 588 || - ||  -
|-
| 589 || - ||  -
|-
| 590 || - ||  -
|-
| 591 || - ||  -
|-
| 592 || - ||  -
|-
| 593 || - ||  -
|-
| 594 || - ||  -
|-
| 595 || - ||  -
|-
| 596 || - ||  -
|-
| 597 || - ||  -
|-
| 598 || - ||  -
|-
| 599 || - ||  -
|-
| 600 || - ||  -
|-
| 601 || - ||  -
|-
| 602 || - ||  -
|-
| 603 || - ||  -
|-
| 604 || - ||  -
|-
| 605 || - ||  -
|-
| 606 || - ||  -
|-
| 607 || - ||  -
|-
| 608 || - ||  -
|-
| 609 || - ||  -
|-
| 610 || - ||  -
|-
| 611 || - ||  -
|-
| 612 || - ||  -
|-
| 613 || - ||  -
|-
| 614 || - ||  -
|-
| 615 || - ||  -
|-
| 616 || - ||  -
|-
| 617 || - ||  -
|-
|-
|}
|}

Revision as of 12:42, 29 July 2015

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.

Number Prototype Notes
533 - -
534 - -
535 - -
536 - -
537 - -
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 - -
569 - -
570 - -
571 - -
572 - -
573 - -
574 - -
575 - -
576 - -
577 - -
578 - -
579 - -
580 - -
581 - -
582 - -
583 - -
584 - -
585 - -
586 - -
587 - -
588 - -
589 - -
590 - -
591 - -
592 - -
593 - -
594 - -
595 - -
596 - -
597 - -
598 - -
599 - -
600 - -
601 - -
602 - -
603 - -
604 - -
605 - -
606 - -
607 - -
608 - -
609 - -
610 - -
611 - -
612 - -
613 - -
614 - -
615 - -
616 - -
617 - -