ps3stor_send_command(9)
π ps3stor_send_command(9) β the kernel API manual, bestie edition π
okay so this is from the Kernel API Manual, and the page you're on is ps3stor_send_command(9) β yes the whole thing is literally named after the function, iconic behavior honestly. it's the "hey storage device, do the thing" function and it is lowkey doing a lot of heavy lifting π«Ά
β¨ NAME β¨
ps3stor_send_command β send a device command to a storage device πΎβ¨
like. that's the whole vibe. you got a command, the storage device wants it, this function is the messenger. main character energy fr fr.
πΈ SYNOPSIS πΈ
u64 ps3stor_send_command (struct ps3_storage_device *dev , u64 cmd , u64 arg1 , u64 arg2 , u64 arg3 , u64 arg4 );
look at all those u64s. six whole things to pass in. she's thorough and we respect it π
π¦ ARGUMENTS π¦
devβ pointer to astruct ps3_storage_device. this is the storage device we're talking to, like tagging the right person in the group chat πcmdβ command number. the actual "what do you want done" part π₯arg1β first command argumentarg2β second command argumentarg3β third command argumentarg4β fourth command argument
four args. arg1 through arg4. they did not get creative with the names and honestly? slay, no notes, it's giving "we ran out of naming ideas at 4" π
β DESCRIPTION β
here's the part where you actually find out what you got back, so pay attention bestie π
- Returns
0for success π’ -1in case of failure to submit the command π΄- or an LV1 status value in case of other errors
so like. zero is good, -1 means the submit didn't even go through, and anything else is LV1 being like "here's a status code, figure it out" π that's the vibe check. memorize it.
π SEE ALSO π
kernel file ./drivers/ps3/ps3stor_lib.c and its besties:
go read those too, iykwim π the whole squad is in ./drivers/ps3/ps3stor_lib.c so you literally can't miss them π§
real talk: the return value is the whole plot here β don't just yeet the command out and ignore what comes back, bestie π check your 0s.
okay that's the page!! this one's from ./drivers/ps3, dated October 2026, and it lives in the Kernel API Manual π bye bestie, go send some commands responsibly πβ¨πΈ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms