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

User:Bushing/kd

From WiiBrew
Jump to navigation Jump to search

KD functions

/dev/net/kd/request ioctls:

NWC24iGetSchedulerStat - (0x1e, 0 input, ? byte output)

NWC24iSetScriptMode - (0x20, 0x20 bytes input, 0x20 bytes output)

NWC24iRequestGenerateUserId - (0xF, 0 input, 0x20 bytes output)

NWC24iRequestRegisterUserId - (0x10, 0 input, 0x20 bytes output)

NWC24iDownloadNowEx - (0xE, 0x20 bytes input, 0x20 bytes output)

ExecTrySuspendScheduler (0x2, 0x20 bytes input, 0x20 bytes output)

NWC24iStartupSocket (0x6, 0 bytes input, 0x20 bytes output)

NWC24iCleanupSocket(0x7, 0 bytes input, 0x20 bytes output)

NWC24iLockSocket(0x8, 0 bytes input, 0x20 bytes output)

NWC24iUnlockSocket(0x9, 0 bytes input, 0x20 bytes output)

NWC24iSaveMailNow(0xd, 0 bytes input, 0x20 bytes output)

NWC24iGetTimeDifference(0x18, 0 bytes input, 0x20 bytes output)

NWC24iSetRtcCounter(0x17, 0 bytes input, 0x20 bytes output)

Suspend? ioctl 1


Error code POSIX equivalent notes
-1 EACCES Permission denied
-2 EEXIST File exists
-4 EINVAL Invalid argument
-6 ENOENT File not found
-8 EBUSY Resource busy
-12 EIO ? returned on ECC error
-22 ENOMEM Alloc failed during request
-102 EACCESS Permission denied
-103 EIO? returned for "corrupted" NAND
-105 EEXIST File exists
-106 ENOENT File not found
-107 ENFILE Too many fds open
-108 EFBIG? max block count reached?
-109 ENFILE Too many fds open
-110 ENAMETOOLONG pathname is too long
-111 ? FD is already open
-114 EIO? returned on ECC error
-115 ENOTEMPTY Directory not empty
-116 ENAMETOOLONG? max directory depth exceeded
-118 EBUSY Resource busy
-119 ? fatal error