Skip to content

Instantly share code, notes, and snippets.

@jasperla
Created April 8, 2016 13:07
Show Gist options
  • Select an option

  • Save jasperla/0433cd1c20d87df3c4c2898618a27023 to your computer and use it in GitHub Desktop.

Select an option

Save jasperla/0433cd1c20d87df3c4c2898618a27023 to your computer and use it in GitHub Desktop.
basalt:2064 ~ % make swap && ./swap
se_dev: 1025
se_flags: 3
se_nblks: 16771871
se_inuse: 0
se_priority: 0
basalt:2065 ~ % go run swap.go
nswap: 1
8531335222149513216
([]main.Swapent) (len=1 cap=1) {
(main.Swapent) {
se_dev: (main._Ctype_dev_t) 1025,
se_flags: (int) 16771871,
se_nblks: (int) 8531335222149513216,
se_inuse: (int) 421718684463,
se_priority: (int) 0,
sw_path: ([]uint8) <nil>
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment