In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

/dev/net/kd/request: Difference between revisions

From WiiBrew
< /dev | net | kd
Jump to navigation Jump to search
m Robot: Cosmetic changes
Yellows8 (talk | contribs)
Added KD_SetNextWakeup and KD_GetTimeTriggers.
Line 1: Line 1:
KD is the IOS module responsible for implementing WiiConnect24 functionality. It can perform HTTPS downloads, send and receive mail via SMTP, and execute a JavaScript-like language while the Wii is in standby mode.
KD is the IOS module responsible for implementing WiiConnect24 functionality. It can perform HTTP(S) downloads, send and receive mail via SMTP, and execute a JavaScript-like language while the Wii is in standby mode.


== Ioctl listing ==
== Ioctl listing ==
Inbuf addr & 3 is written to outbuf for most or all ioctls.


{| class="wikitable"
{| class="wikitable"
Line 30: Line 32:
|-
|-
| 4
| 4
| KD_GetTimeTriggers
| ?
| ?
| ?
| 12 bytes
| 12+ bytes
| Writes the time triggers for the minutes of the hour for when KD_Download and KD_CheckMail are triggered to outbuf + 4.
|  
|-
|-
| 5
| 5
Line 127: Line 129:
|-
|-
| 0x21
| 0x21
| ?
| KD_SetNextWakeup
| ?
| 4 bytes
| ?
| 4 bytes
|  
| Input is a u32 determining the seconds till next time STM_Wakeup is called.
|-
|-
| 0x22
| 0x22

Revision as of 20:58, 1 June 2010

KD is the IOS module responsible for implementing WiiConnect24 functionality. It can perform HTTP(S) downloads, send and receive mail via SMTP, and execute a JavaScript-like language while the Wii is in standby mode.

Ioctl listing

Inbuf addr & 3 is written to outbuf for most or all ioctls.

Request number Name Input Output Notes
1 ExecSuspendScheduler none 4 bytes
2 ExecTrySuspendScheduler 32 bytes 32 bytes
3 ExecResumeScheduler none 4+ bytes
4 KD_GetTimeTriggers ? 12 bytes Writes the time triggers for the minutes of the hour for when KD_Download and KD_CheckMail are triggered to outbuf + 4.
5 ? ? 4+ bytes
6 NWC24iStartupSocket none 32 bytes
7 NWC24iCleanupSocket none 32 bytes
8 NWC24iLockSocket none 32 bytes
9 NWC24iUnlockSocket none 32 bytes
0xa NWC24iCheckMailNow none 32 bytes
0xb NWC24iSendMailNow none 8+ bytes Connect and send mail?
0xc NWC24iReceiveMailNow ? 8+ bytes
0xd NWC24iSaveMailNow none 32 bytes
0xe NWC24iDownloadNowEx 32 bytes 32 bytes
0xf NWC24iRequestGenerateUserId none 32 bytes
0x10 NWC24iRequestRegisterUserId none 32 bytes
0x1e NWC24iGetSchedulerStat none none
0x1f NWC24iSetFilterMode 32 bytes 32 bytes
0x20 NWC24iSetDebugMode 32 bytes 32 bytes
0x21 KD_SetNextWakeup 4 bytes 4 bytes Input is a u32 determining the seconds till next time STM_Wakeup is called.
0x22 NWC24iSetScriptMode 32 bytes 32 bytes
0x28 (async?) NWC24iRequestShutdown 32 bytes 32 bytes