RTAS(2)
π RTAS(2) β the glow-up edition π
ok bestie, welcome to RTAS(2), straight outta the System Calls Manual. section 2, we're in syscall territory, and this one is a whole vibe. let's get into it π¦
β¨ NAME β¨
rtas β Allows userspace to call RTAS (Run Time Abstraction Services)
no cap, that's literally the whole job description.
πΈ SYNOPSIS πΈ
int ppc_rtas (struct rtas_args *uargs);
one function, one struct pointer, main character energy fr fr.
π DESCRIPTION π
okay so, ppc_rtas is the lil doorway that lets userspace do its own manipulation of the RunTime Abstraction Services (aka RTAS, iykyk).
and what is RTAS for? it provides for a portable method of access and setting system information. like, for example, you could gather information on various system sensors, and set poweron values. very demure, very mindful, very portable. π
RTAS is accessed via the /proc entry called "rtas". and the manipulations on RTAS? they're implemented via command line arguments on /proc/rtas. yes bestie, /proc/rtas, that's the one.
heads up though β the values for uargs vary greatly. like, wildly. so if you need more info, go see the view/arch/ppcKconfig file. that's where the lore lives πβ¨
π«Ά RETURN VALUE π«Ά
rtas returns 0 on success π otherwise it returns one of the errors listed in the "Errors" section. so basically zero = slay, anything else = read the next section babes.
π ERRORS π
-EPERMβ User does not haveCAP_SYS_ADMINcapabilities. not you without the right permissions π-EFAULTβ Problem copyinguargsvalues to/from user space. the copy just didn't copy, and honestly? relatable.-EINVALβ Either number ofuargspassed in too large or size ofuargsarray too large. too much of a good thing, bestie. it's giving overpacked suitcase π§³
π AUTHOR π
Niki Rahimi. periodt. π
that's the whole page bestie, you ate it up πβ and just so you know, this was the RTAS(2) page from the System Calls Manual β go be iconic with your /proc/rtas calls, ily πππ¦
π¦ where this page comes from
- centos-stream 10: man-pages 6.06-13.el10 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Fedora-Public-Domain AND LicenseRef-Fedora-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- centos-stream 9: man-pages 6.04-10.el9 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Fedora-Public-Domain AND LicenseRef-Fedora-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- fedora 43: man-pages 6.13-2.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Fedora-Public-Domain AND LicenseRef-Fedora-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- fedora 43: man-pages 6.9.1-5.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Fedora-Public-Domain AND LicenseRef-Fedora-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- fedora 44: man-pages 6.13-3.fc44 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Fedora-Public-Domain AND LicenseRef-Fedora-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- Copyright (C) 2004 IBM Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms