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

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

From WiiBrew
< /dev | net | kd
Jump to navigation Jump to search
Megazig (talk | contribs)
Parlane (talk | contribs)
Correct names
Line 16: Line 16:
|-
|-
| 0x14
| 0x14
| KD_GetUTCTime
| NWC24iGetUniversalTime
| none  
| none  
| 12 bytes
| 12 bytes
Line 22: Line 22:
|-
|-
| 0x15
| 0x15
| KD_SetUTCTime
| NWC24iSetUniversalTime
| 12 bytes  
| 12 bytes  
| 4 bytes
| 4 bytes

Revision as of 10:21, 9 February 2012

Ioctl listing

typedef struct _skd_timebuf//This is used by all ioctls for at least outbuf. For ioctl 0x18, inbuf addr & 3 is written to retval.
{
       s32 retval;//Zero for success, -30 when "Universal time is not ready.".
       u64 time;//UTC time in seconds.
} kd_timebuf;
Request number Name Input Output Notes
0x14 NWC24iGetUniversalTime none 12 bytes Writes the current UTC time to inbuf kd_timebuf->time.
0x15 NWC24iSetUniversalTime 12 bytes 4 bytes Sets the current UTC time to inbuf kd_timebuf->time.
0x16 Undefined none none always returns -9
0x17 NWC24iSetRtcCounter 8 bytes 4 bytes Corrects the internal KD RTC by adding the input u64.
0x18 NWC24iGetTimeDifference none 12 bytes