khenaidoo | 106c61a | 2021-08-11 18:05:46 -0400 | [diff] [blame^] | 1 | // cgo -godefs -- -Wall -Werror -static -I/tmp/include /build/linux/types.go | go run mkpost.go |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 2 | // Code generated by the command above; see README.md. DO NOT EDIT. |
| 3 | |
khenaidoo | 106c61a | 2021-08-11 18:05:46 -0400 | [diff] [blame^] | 4 | //go:build mipsle && linux |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 5 | // +build mipsle,linux |
| 6 | |
| 7 | package unix |
| 8 | |
| 9 | const ( |
khenaidoo | 106c61a | 2021-08-11 18:05:46 -0400 | [diff] [blame^] | 10 | SizeofPtr = 0x4 |
| 11 | SizeofLong = 0x4 |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 12 | ) |
| 13 | |
| 14 | type ( |
khenaidoo | 106c61a | 2021-08-11 18:05:46 -0400 | [diff] [blame^] | 15 | _C_long int32 |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 16 | ) |
| 17 | |
| 18 | type Timespec struct { |
| 19 | Sec int32 |
| 20 | Nsec int32 |
| 21 | } |
| 22 | |
| 23 | type Timeval struct { |
| 24 | Sec int32 |
| 25 | Usec int32 |
| 26 | } |
| 27 | |
| 28 | type Timex struct { |
| 29 | Modes uint32 |
| 30 | Offset int32 |
| 31 | Freq int32 |
| 32 | Maxerror int32 |
| 33 | Esterror int32 |
| 34 | Status int32 |
| 35 | Constant int32 |
| 36 | Precision int32 |
| 37 | Tolerance int32 |
| 38 | Time Timeval |
| 39 | Tick int32 |
| 40 | Ppsfreq int32 |
| 41 | Jitter int32 |
| 42 | Shift int32 |
| 43 | Stabil int32 |
| 44 | Jitcnt int32 |
| 45 | Calcnt int32 |
| 46 | Errcnt int32 |
| 47 | Stbcnt int32 |
| 48 | Tai int32 |
| 49 | _ [44]byte |
| 50 | } |
| 51 | |
| 52 | type Time_t int32 |
| 53 | |
| 54 | type Tms struct { |
| 55 | Utime int32 |
| 56 | Stime int32 |
| 57 | Cutime int32 |
| 58 | Cstime int32 |
| 59 | } |
| 60 | |
| 61 | type Utimbuf struct { |
| 62 | Actime int32 |
| 63 | Modtime int32 |
| 64 | } |
| 65 | |
| 66 | type Rusage struct { |
| 67 | Utime Timeval |
| 68 | Stime Timeval |
| 69 | Maxrss int32 |
| 70 | Ixrss int32 |
| 71 | Idrss int32 |
| 72 | Isrss int32 |
| 73 | Minflt int32 |
| 74 | Majflt int32 |
| 75 | Nswap int32 |
| 76 | Inblock int32 |
| 77 | Oublock int32 |
| 78 | Msgsnd int32 |
| 79 | Msgrcv int32 |
| 80 | Nsignals int32 |
| 81 | Nvcsw int32 |
| 82 | Nivcsw int32 |
| 83 | } |
| 84 | |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 85 | type Stat_t struct { |
| 86 | Dev uint32 |
| 87 | Pad1 [3]int32 |
| 88 | Ino uint64 |
| 89 | Mode uint32 |
| 90 | Nlink uint32 |
| 91 | Uid uint32 |
| 92 | Gid uint32 |
| 93 | Rdev uint32 |
| 94 | Pad2 [3]int32 |
| 95 | Size int64 |
| 96 | Atim Timespec |
| 97 | Mtim Timespec |
| 98 | Ctim Timespec |
| 99 | Blksize int32 |
| 100 | Pad4 int32 |
| 101 | Blocks int64 |
| 102 | Pad5 [14]int32 |
| 103 | } |
| 104 | |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 105 | type Dirent struct { |
| 106 | Ino uint64 |
| 107 | Off int64 |
| 108 | Reclen uint16 |
| 109 | Type uint8 |
| 110 | Name [256]int8 |
| 111 | _ [5]byte |
| 112 | } |
| 113 | |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 114 | type Flock_t struct { |
| 115 | Type int16 |
| 116 | Whence int16 |
| 117 | _ [4]byte |
| 118 | Start int64 |
| 119 | Len int64 |
| 120 | Pid int32 |
| 121 | _ [4]byte |
| 122 | } |
| 123 | |
khenaidoo | 106c61a | 2021-08-11 18:05:46 -0400 | [diff] [blame^] | 124 | type DmNameList struct { |
| 125 | Dev uint64 |
| 126 | Next uint32 |
| 127 | Name [0]byte |
| 128 | _ [4]byte |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 129 | } |
| 130 | |
| 131 | const ( |
khenaidoo | 106c61a | 2021-08-11 18:05:46 -0400 | [diff] [blame^] | 132 | FADV_DONTNEED = 0x4 |
| 133 | FADV_NOREUSE = 0x5 |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 134 | ) |
| 135 | |
khenaidoo | 106c61a | 2021-08-11 18:05:46 -0400 | [diff] [blame^] | 136 | type RawSockaddrNFCLLCP struct { |
| 137 | Sa_family uint16 |
| 138 | Dev_idx uint32 |
| 139 | Target_idx uint32 |
| 140 | Nfc_protocol uint32 |
| 141 | Dsap uint8 |
| 142 | Ssap uint8 |
| 143 | Service_name [63]uint8 |
| 144 | Service_name_len uint32 |
David Bainbridge | 788e520 | 2019-10-21 18:49:40 +0000 | [diff] [blame] | 145 | } |
| 146 | |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 147 | type RawSockaddr struct { |
| 148 | Family uint16 |
| 149 | Data [14]int8 |
| 150 | } |
| 151 | |
| 152 | type RawSockaddrAny struct { |
| 153 | Addr RawSockaddr |
| 154 | Pad [96]int8 |
| 155 | } |
| 156 | |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 157 | type Iovec struct { |
| 158 | Base *byte |
| 159 | Len uint32 |
| 160 | } |
| 161 | |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 162 | type Msghdr struct { |
| 163 | Name *byte |
| 164 | Namelen uint32 |
| 165 | Iov *Iovec |
| 166 | Iovlen uint32 |
| 167 | Control *byte |
| 168 | Controllen uint32 |
| 169 | Flags int32 |
| 170 | } |
| 171 | |
| 172 | type Cmsghdr struct { |
| 173 | Len uint32 |
| 174 | Level int32 |
| 175 | Type int32 |
| 176 | } |
| 177 | |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 178 | const ( |
khenaidoo | 106c61a | 2021-08-11 18:05:46 -0400 | [diff] [blame^] | 179 | SizeofSockaddrNFCLLCP = 0x58 |
| 180 | SizeofIovec = 0x8 |
| 181 | SizeofMsghdr = 0x1c |
| 182 | SizeofCmsghdr = 0xc |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 183 | ) |
| 184 | |
| 185 | const ( |
khenaidoo | 106c61a | 2021-08-11 18:05:46 -0400 | [diff] [blame^] | 186 | SizeofSockFprog = 0x8 |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 187 | ) |
| 188 | |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 189 | type PtraceRegs struct { |
| 190 | Regs [32]uint64 |
| 191 | Lo uint64 |
| 192 | Hi uint64 |
| 193 | Epc uint64 |
| 194 | Badvaddr uint64 |
| 195 | Status uint64 |
| 196 | Cause uint64 |
| 197 | } |
| 198 | |
| 199 | type FdSet struct { |
| 200 | Bits [32]int32 |
| 201 | } |
| 202 | |
| 203 | type Sysinfo_t struct { |
| 204 | Uptime int32 |
| 205 | Loads [3]uint32 |
| 206 | Totalram uint32 |
| 207 | Freeram uint32 |
| 208 | Sharedram uint32 |
| 209 | Bufferram uint32 |
| 210 | Totalswap uint32 |
| 211 | Freeswap uint32 |
| 212 | Procs uint16 |
| 213 | Pad uint16 |
| 214 | Totalhigh uint32 |
| 215 | Freehigh uint32 |
| 216 | Unit uint32 |
| 217 | _ [8]int8 |
| 218 | } |
| 219 | |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 220 | type Ustat_t struct { |
| 221 | Tfree int32 |
| 222 | Tinode uint32 |
| 223 | Fname [6]int8 |
| 224 | Fpack [6]int8 |
| 225 | } |
| 226 | |
| 227 | type EpollEvent struct { |
| 228 | Events uint32 |
| 229 | PadFd int32 |
| 230 | Fd int32 |
| 231 | Pad int32 |
| 232 | } |
| 233 | |
| 234 | const ( |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 235 | POLLRDHUP = 0x2000 |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 236 | ) |
| 237 | |
| 238 | type Sigset_t struct { |
| 239 | Val [32]uint32 |
| 240 | } |
| 241 | |
Abhilash S.L | 3b49463 | 2019-07-16 15:51:09 +0530 | [diff] [blame] | 242 | const _C__NSIG = 0x80 |
| 243 | |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 244 | type Termios struct { |
| 245 | Iflag uint32 |
| 246 | Oflag uint32 |
| 247 | Cflag uint32 |
| 248 | Lflag uint32 |
| 249 | Line uint8 |
| 250 | Cc [23]uint8 |
| 251 | Ispeed uint32 |
| 252 | Ospeed uint32 |
| 253 | } |
| 254 | |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 255 | type Taskstats struct { |
| 256 | Version uint16 |
| 257 | Ac_exitcode uint32 |
| 258 | Ac_flag uint8 |
| 259 | Ac_nice uint8 |
| 260 | _ [4]byte |
| 261 | Cpu_count uint64 |
| 262 | Cpu_delay_total uint64 |
| 263 | Blkio_count uint64 |
| 264 | Blkio_delay_total uint64 |
| 265 | Swapin_count uint64 |
| 266 | Swapin_delay_total uint64 |
| 267 | Cpu_run_real_total uint64 |
| 268 | Cpu_run_virtual_total uint64 |
| 269 | Ac_comm [32]int8 |
| 270 | Ac_sched uint8 |
| 271 | Ac_pad [3]uint8 |
| 272 | _ [4]byte |
| 273 | Ac_uid uint32 |
| 274 | Ac_gid uint32 |
| 275 | Ac_pid uint32 |
| 276 | Ac_ppid uint32 |
| 277 | Ac_btime uint32 |
| 278 | _ [4]byte |
| 279 | Ac_etime uint64 |
| 280 | Ac_utime uint64 |
| 281 | Ac_stime uint64 |
| 282 | Ac_minflt uint64 |
| 283 | Ac_majflt uint64 |
| 284 | Coremem uint64 |
| 285 | Virtmem uint64 |
| 286 | Hiwater_rss uint64 |
| 287 | Hiwater_vm uint64 |
| 288 | Read_char uint64 |
| 289 | Write_char uint64 |
| 290 | Read_syscalls uint64 |
| 291 | Write_syscalls uint64 |
| 292 | Read_bytes uint64 |
| 293 | Write_bytes uint64 |
| 294 | Cancelled_write_bytes uint64 |
| 295 | Nvcsw uint64 |
| 296 | Nivcsw uint64 |
| 297 | Ac_utimescaled uint64 |
| 298 | Ac_stimescaled uint64 |
| 299 | Cpu_scaled_run_real_total uint64 |
| 300 | Freepages_count uint64 |
| 301 | Freepages_delay_total uint64 |
| 302 | Thrashing_count uint64 |
| 303 | Thrashing_delay_total uint64 |
khenaidoo | 106c61a | 2021-08-11 18:05:46 -0400 | [diff] [blame^] | 304 | Ac_btime64 uint64 |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 305 | } |
| 306 | |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 307 | type cpuMask uint32 |
| 308 | |
| 309 | const ( |
khenaidoo | 106c61a | 2021-08-11 18:05:46 -0400 | [diff] [blame^] | 310 | _NCPUBITS = 0x20 |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 311 | ) |
| 312 | |
| 313 | const ( |
| 314 | CBitFieldMaskBit0 = 0x1 |
| 315 | CBitFieldMaskBit1 = 0x2 |
| 316 | CBitFieldMaskBit2 = 0x4 |
| 317 | CBitFieldMaskBit3 = 0x8 |
| 318 | CBitFieldMaskBit4 = 0x10 |
| 319 | CBitFieldMaskBit5 = 0x20 |
| 320 | CBitFieldMaskBit6 = 0x40 |
| 321 | CBitFieldMaskBit7 = 0x80 |
| 322 | CBitFieldMaskBit8 = 0x100 |
| 323 | CBitFieldMaskBit9 = 0x200 |
| 324 | CBitFieldMaskBit10 = 0x400 |
| 325 | CBitFieldMaskBit11 = 0x800 |
| 326 | CBitFieldMaskBit12 = 0x1000 |
| 327 | CBitFieldMaskBit13 = 0x2000 |
| 328 | CBitFieldMaskBit14 = 0x4000 |
| 329 | CBitFieldMaskBit15 = 0x8000 |
| 330 | CBitFieldMaskBit16 = 0x10000 |
| 331 | CBitFieldMaskBit17 = 0x20000 |
| 332 | CBitFieldMaskBit18 = 0x40000 |
| 333 | CBitFieldMaskBit19 = 0x80000 |
| 334 | CBitFieldMaskBit20 = 0x100000 |
| 335 | CBitFieldMaskBit21 = 0x200000 |
| 336 | CBitFieldMaskBit22 = 0x400000 |
| 337 | CBitFieldMaskBit23 = 0x800000 |
| 338 | CBitFieldMaskBit24 = 0x1000000 |
| 339 | CBitFieldMaskBit25 = 0x2000000 |
| 340 | CBitFieldMaskBit26 = 0x4000000 |
| 341 | CBitFieldMaskBit27 = 0x8000000 |
| 342 | CBitFieldMaskBit28 = 0x10000000 |
| 343 | CBitFieldMaskBit29 = 0x20000000 |
| 344 | CBitFieldMaskBit30 = 0x40000000 |
| 345 | CBitFieldMaskBit31 = 0x80000000 |
| 346 | CBitFieldMaskBit32 = 0x100000000 |
| 347 | CBitFieldMaskBit33 = 0x200000000 |
| 348 | CBitFieldMaskBit34 = 0x400000000 |
| 349 | CBitFieldMaskBit35 = 0x800000000 |
| 350 | CBitFieldMaskBit36 = 0x1000000000 |
| 351 | CBitFieldMaskBit37 = 0x2000000000 |
| 352 | CBitFieldMaskBit38 = 0x4000000000 |
| 353 | CBitFieldMaskBit39 = 0x8000000000 |
| 354 | CBitFieldMaskBit40 = 0x10000000000 |
| 355 | CBitFieldMaskBit41 = 0x20000000000 |
| 356 | CBitFieldMaskBit42 = 0x40000000000 |
| 357 | CBitFieldMaskBit43 = 0x80000000000 |
| 358 | CBitFieldMaskBit44 = 0x100000000000 |
| 359 | CBitFieldMaskBit45 = 0x200000000000 |
| 360 | CBitFieldMaskBit46 = 0x400000000000 |
| 361 | CBitFieldMaskBit47 = 0x800000000000 |
| 362 | CBitFieldMaskBit48 = 0x1000000000000 |
| 363 | CBitFieldMaskBit49 = 0x2000000000000 |
| 364 | CBitFieldMaskBit50 = 0x4000000000000 |
| 365 | CBitFieldMaskBit51 = 0x8000000000000 |
| 366 | CBitFieldMaskBit52 = 0x10000000000000 |
| 367 | CBitFieldMaskBit53 = 0x20000000000000 |
| 368 | CBitFieldMaskBit54 = 0x40000000000000 |
| 369 | CBitFieldMaskBit55 = 0x80000000000000 |
| 370 | CBitFieldMaskBit56 = 0x100000000000000 |
| 371 | CBitFieldMaskBit57 = 0x200000000000000 |
| 372 | CBitFieldMaskBit58 = 0x400000000000000 |
| 373 | CBitFieldMaskBit59 = 0x800000000000000 |
| 374 | CBitFieldMaskBit60 = 0x1000000000000000 |
| 375 | CBitFieldMaskBit61 = 0x2000000000000000 |
| 376 | CBitFieldMaskBit62 = 0x4000000000000000 |
| 377 | CBitFieldMaskBit63 = 0x8000000000000000 |
| 378 | ) |
| 379 | |
| 380 | type SockaddrStorage struct { |
| 381 | Family uint16 |
| 382 | _ [122]int8 |
| 383 | _ uint32 |
| 384 | } |
| 385 | |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 386 | type HDGeometry struct { |
| 387 | Heads uint8 |
| 388 | Sectors uint8 |
| 389 | Cylinders uint16 |
| 390 | Start uint32 |
| 391 | } |
| 392 | |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 393 | type Statfs_t struct { |
| 394 | Type int32 |
| 395 | Bsize int32 |
| 396 | Frsize int32 |
| 397 | _ [4]byte |
| 398 | Blocks uint64 |
| 399 | Bfree uint64 |
| 400 | Files uint64 |
| 401 | Ffree uint64 |
| 402 | Bavail uint64 |
| 403 | Fsid Fsid |
| 404 | Namelen int32 |
| 405 | Flags int32 |
| 406 | Spare [5]int32 |
| 407 | _ [4]byte |
| 408 | } |
| 409 | |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 410 | type TpacketHdr struct { |
| 411 | Status uint32 |
| 412 | Len uint32 |
| 413 | Snaplen uint32 |
| 414 | Mac uint16 |
| 415 | Net uint16 |
| 416 | Sec uint32 |
| 417 | Usec uint32 |
| 418 | } |
| 419 | |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 420 | const ( |
khenaidoo | 106c61a | 2021-08-11 18:05:46 -0400 | [diff] [blame^] | 421 | SizeofTpacketHdr = 0x18 |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 422 | ) |
| 423 | |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 424 | type RTCPLLInfo struct { |
| 425 | Ctrl int32 |
| 426 | Value int32 |
| 427 | Max int32 |
| 428 | Min int32 |
| 429 | Posmult int32 |
| 430 | Negmult int32 |
| 431 | Clock int32 |
| 432 | } |
| 433 | |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 434 | type BlkpgPartition struct { |
| 435 | Start int64 |
| 436 | Length int64 |
| 437 | Pno int32 |
| 438 | Devname [64]uint8 |
| 439 | Volname [64]uint8 |
| 440 | _ [4]byte |
| 441 | } |
| 442 | |
| 443 | const ( |
khenaidoo | 106c61a | 2021-08-11 18:05:46 -0400 | [diff] [blame^] | 444 | BLKPG = 0x20001269 |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 445 | ) |
| 446 | |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 447 | type XDPUmemReg struct { |
| 448 | Addr uint64 |
| 449 | Len uint64 |
| 450 | Size uint32 |
| 451 | Headroom uint32 |
khenaidoo | 106c61a | 2021-08-11 18:05:46 -0400 | [diff] [blame^] | 452 | Flags uint32 |
| 453 | _ [4]byte |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 454 | } |
| 455 | |
Abhilash S.L | 3b49463 | 2019-07-16 15:51:09 +0530 | [diff] [blame] | 456 | type CryptoUserAlg struct { |
| 457 | Name [64]int8 |
| 458 | Driver_name [64]int8 |
| 459 | Module_name [64]int8 |
| 460 | Type uint32 |
| 461 | Mask uint32 |
| 462 | Refcnt uint32 |
| 463 | Flags uint32 |
| 464 | } |
| 465 | |
| 466 | type CryptoStatAEAD struct { |
| 467 | Type [64]int8 |
| 468 | Encrypt_cnt uint64 |
| 469 | Encrypt_tlen uint64 |
| 470 | Decrypt_cnt uint64 |
| 471 | Decrypt_tlen uint64 |
| 472 | Err_cnt uint64 |
| 473 | } |
| 474 | |
| 475 | type CryptoStatAKCipher struct { |
| 476 | Type [64]int8 |
| 477 | Encrypt_cnt uint64 |
| 478 | Encrypt_tlen uint64 |
| 479 | Decrypt_cnt uint64 |
| 480 | Decrypt_tlen uint64 |
| 481 | Verify_cnt uint64 |
| 482 | Sign_cnt uint64 |
| 483 | Err_cnt uint64 |
| 484 | } |
| 485 | |
| 486 | type CryptoStatCipher struct { |
| 487 | Type [64]int8 |
| 488 | Encrypt_cnt uint64 |
| 489 | Encrypt_tlen uint64 |
| 490 | Decrypt_cnt uint64 |
| 491 | Decrypt_tlen uint64 |
| 492 | Err_cnt uint64 |
| 493 | } |
| 494 | |
| 495 | type CryptoStatCompress struct { |
| 496 | Type [64]int8 |
| 497 | Compress_cnt uint64 |
| 498 | Compress_tlen uint64 |
| 499 | Decompress_cnt uint64 |
| 500 | Decompress_tlen uint64 |
| 501 | Err_cnt uint64 |
| 502 | } |
| 503 | |
| 504 | type CryptoStatHash struct { |
| 505 | Type [64]int8 |
| 506 | Hash_cnt uint64 |
| 507 | Hash_tlen uint64 |
| 508 | Err_cnt uint64 |
| 509 | } |
| 510 | |
| 511 | type CryptoStatKPP struct { |
| 512 | Type [64]int8 |
| 513 | Setsecret_cnt uint64 |
| 514 | Generate_public_key_cnt uint64 |
| 515 | Compute_shared_secret_cnt uint64 |
| 516 | Err_cnt uint64 |
| 517 | } |
| 518 | |
| 519 | type CryptoStatRNG struct { |
| 520 | Type [64]int8 |
| 521 | Generate_cnt uint64 |
| 522 | Generate_tlen uint64 |
| 523 | Seed_cnt uint64 |
| 524 | Err_cnt uint64 |
| 525 | } |
| 526 | |
| 527 | type CryptoStatLarval struct { |
| 528 | Type [64]int8 |
| 529 | } |
| 530 | |
| 531 | type CryptoReportLarval struct { |
| 532 | Type [64]int8 |
| 533 | } |
| 534 | |
| 535 | type CryptoReportHash struct { |
| 536 | Type [64]int8 |
| 537 | Blocksize uint32 |
| 538 | Digestsize uint32 |
| 539 | } |
| 540 | |
| 541 | type CryptoReportCipher struct { |
| 542 | Type [64]int8 |
| 543 | Blocksize uint32 |
| 544 | Min_keysize uint32 |
| 545 | Max_keysize uint32 |
| 546 | } |
| 547 | |
| 548 | type CryptoReportBlkCipher struct { |
| 549 | Type [64]int8 |
| 550 | Geniv [64]int8 |
| 551 | Blocksize uint32 |
| 552 | Min_keysize uint32 |
| 553 | Max_keysize uint32 |
| 554 | Ivsize uint32 |
| 555 | } |
| 556 | |
| 557 | type CryptoReportAEAD struct { |
| 558 | Type [64]int8 |
| 559 | Geniv [64]int8 |
| 560 | Blocksize uint32 |
| 561 | Maxauthsize uint32 |
| 562 | Ivsize uint32 |
| 563 | } |
| 564 | |
| 565 | type CryptoReportComp struct { |
| 566 | Type [64]int8 |
| 567 | } |
| 568 | |
| 569 | type CryptoReportRNG struct { |
| 570 | Type [64]int8 |
| 571 | Seedsize uint32 |
| 572 | } |
| 573 | |
| 574 | type CryptoReportAKCipher struct { |
| 575 | Type [64]int8 |
| 576 | } |
| 577 | |
| 578 | type CryptoReportKPP struct { |
| 579 | Type [64]int8 |
| 580 | } |
| 581 | |
| 582 | type CryptoReportAcomp struct { |
| 583 | Type [64]int8 |
| 584 | } |
| 585 | |
Abhilash S.L | 3b49463 | 2019-07-16 15:51:09 +0530 | [diff] [blame] | 586 | type LoopInfo struct { |
| 587 | Number int32 |
| 588 | Device uint32 |
| 589 | Inode uint32 |
| 590 | Rdevice uint32 |
| 591 | Offset int32 |
| 592 | Encrypt_type int32 |
| 593 | Encrypt_key_size int32 |
| 594 | Flags int32 |
| 595 | Name [64]int8 |
| 596 | Encrypt_key [32]uint8 |
| 597 | Init [2]uint32 |
| 598 | Reserved [4]int8 |
| 599 | } |
David Bainbridge | 788e520 | 2019-10-21 18:49:40 +0000 | [diff] [blame] | 600 | |
| 601 | type TIPCSubscr struct { |
| 602 | Seq TIPCServiceRange |
| 603 | Timeout uint32 |
| 604 | Filter uint32 |
| 605 | Handle [8]int8 |
| 606 | } |
| 607 | |
David Bainbridge | 788e520 | 2019-10-21 18:49:40 +0000 | [diff] [blame] | 608 | type TIPCSIOCLNReq struct { |
| 609 | Peer uint32 |
| 610 | Id uint32 |
| 611 | Linkname [68]int8 |
| 612 | } |
| 613 | |
| 614 | type TIPCSIOCNodeIDReq struct { |
| 615 | Peer uint32 |
| 616 | Id [16]int8 |
| 617 | } |
| 618 | |
khenaidoo | 106c61a | 2021-08-11 18:05:46 -0400 | [diff] [blame^] | 619 | type PPSKInfo struct { |
| 620 | Assert_sequence uint32 |
| 621 | Clear_sequence uint32 |
| 622 | Assert_tu PPSKTime |
| 623 | Clear_tu PPSKTime |
| 624 | Current_mode int32 |
| 625 | _ [4]byte |
| 626 | } |
| 627 | |
David Bainbridge | 788e520 | 2019-10-21 18:49:40 +0000 | [diff] [blame] | 628 | const ( |
khenaidoo | 106c61a | 2021-08-11 18:05:46 -0400 | [diff] [blame^] | 629 | PPS_GETPARAMS = 0x400470a1 |
| 630 | PPS_SETPARAMS = 0x800470a2 |
| 631 | PPS_GETCAP = 0x400470a3 |
| 632 | PPS_FETCH = 0xc00470a4 |
David Bainbridge | 788e520 | 2019-10-21 18:49:40 +0000 | [diff] [blame] | 633 | ) |