github.com/u-root/u-root@v7.0.1-0.20200915234505-ad7babab0a8e+incompatible/cmds/core/io/io_linux.go (about) 1 // Copyright 2010-2020 the u-root Authors. All rights reserved 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package main 6 7 import ( 8 "github.com/u-root/u-root/pkg/memio" 9 ) 10 11 func init() { 12 addCmd(readCmds, "rb", &cmd{memio.Read, 64, 8}) 13 addCmd(readCmds, "rw", &cmd{memio.Read, 64, 16}) 14 addCmd(readCmds, "rl", &cmd{memio.Read, 64, 32}) 15 addCmd(readCmds, "rq", &cmd{memio.Read, 64, 64}) 16 17 addCmd(writeCmds, "wb", &cmd{memio.Write, 64, 8}) 18 addCmd(writeCmds, "ww", &cmd{memio.Write, 64, 16}) 19 addCmd(writeCmds, "wl", &cmd{memio.Write, 64, 32}) 20 addCmd(writeCmds, "wq", &cmd{memio.Write, 64, 64}) 21 22 usageMsg += `io (r{b,w,l,q} address)... 23 io (w{b,w,l,q} address value)... 24 ` 25 }