Documentation
¶
Overview ¶
Copyright 2019 Northern.tech AS
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2019 Northern.tech AS
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- Variables
- func GetBlockDeviceSectorSize(file *os.File) (int, error)
- func GetBlockDeviceSize(file *os.File) (uint64, error)
- func IsUbiBlockDevice(deviceName string) bool
- func SetUbiUpdateVolume(file *os.File, imageSize int64) error
- type Commander
- type OsCalls
- type StatCommander
- type SystemRebootCmd
Constants ¶
View Source
const UBI_IOCVOLUP ioctlRequestValue = 0x40084f00
Taken from <mtd/ubi-user.h>
Variables ¶
View Source
var NotABlockDevice = errors.New("Not a block device.")
Functions ¶
func IsUbiBlockDevice ¶
Types ¶
type SystemRebootCmd ¶
type SystemRebootCmd struct {
// contains filtered or unexported fields
}
func NewSystemRebootCmd ¶
func NewSystemRebootCmd(command Commander) *SystemRebootCmd
func (*SystemRebootCmd) Reboot ¶
func (s *SystemRebootCmd) Reboot() error
Click to show internal directories.
Click to hide internal directories.