DAXCTL-CREATE-DEVI(1) | daxctl Manual | DAXCTL-CREATE-DEVI(1) |
NAME¶
daxctl-create-device - Create a devdax device
SYNOPSIS¶
daxctl create-device [<options>]
EXAMPLES¶
.ft C # daxctl create-device -s 4G [
{
"chardev":"dax0.1",
"size":4294967296,
"target_node":0,
"mode":"devdax"
} ] .ft
.ft C # daxctl create-device -u [
{
"chardev":"dax0.1",
"size":"15.63 GiB (16.78 GB)",
"target_node":0,
"mode":"devdax"
},
{
"chardev":"dax1.1",
"size":"15.63 GiB (16.78 GB)",
"target_node":1,
"mode":"devdax"
} ] .ft
.ft C # daxctl create-device -r 0 -u {
"chardev":"dax0.1",
"size":"15.63 GiB (16.78 GB)",
"target_node":0,
"mode":"devdax" } .ft
DESCRIPTION¶
Creates dax device in devdax mode in dynamic regions. The resultant can also be convereted to the system-ram mode which arranges for the dax range to be hot-plugged into the system as regular memory.
daxctl create-device expects that the BIOS or kernel defines a range in the EFI memory map with EFI_MEMORY_SP. The resultant ranges mean that it’s 100% capacity is reserved for applications.
OPTIONS¶
-r, --region=
-s, --size=
The size must be a multiple of the region alignment.
-a, --align
--input
The device name is not re-created, but if a "chardev" is passed in the JSON file, it will use that to get the region id.
Note that the JSON content in the file cannot be an array of JSON objects but rather a single JSON object i.e. without the array enclosing brackets.
-u, --human
-v, --verbose
COPYRIGHT¶
Copyright © 2016 - 2020, Intel Corporation. License GPLv2: GNU GPL version 2 http://gnu.org/licenses/gpl.html. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO¶
daxctl-list(1),daxctl-reconfigure-device[1],daxctl-destroy-device[1]
09/29/2023 | daxctl 71.1 |