DAXCTL-CREATE-DEVICE(1)
π DAXCTL-CREATE-DEVICE π
okay so bestie, you're reading the daxctl manual page for daxctl-create-device β yeah that's the whole manual name, it's a mouthful, we deal. this one's all about creating a devdax device, and honestly it's kind of iconic. let's get into it π
β¨ SYNOPSIS β¨
daxctl create-device [<options>]
that's it. that's the whole vibe. options only, no positional args, she's low maintenance like that π¦
πΈ EXAMPLES πΈ
okay these are the moment, fr fr. watch and learn π
- creates
dax0.1with 4G of size π
# daxctl create-device -s 4G
[
{
"chardev":"dax0.1",
"size":4294967296,
"target_node":0,
"mode":"devdax"
}
]
- creates devices with fully available size on all regions β
-usaid "make it pretty" and she DID β¨
# 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"
}
]
- creates
dax0.1with fully available size on region id 0 β note the single object, not an array, she's solo now π§
# daxctl create-device -r 0 -u
{
"chardev":"dax0.1",
"size":"15.63 GiB (16.78 GB)",
"target_node":0,
"mode":"devdax"
}
π¦ DESCRIPTION π¦
so what does she actually do. daxctl create-device creates a dax device in devdax mode in dynamic regions. and the resultant? can also be converted to the system-ram mode β which arranges for the dax range to be hot-plugged into the system as regular memory. cute conversion arc, honestly π
now the important part, bestie, pay attention π: daxctl create-device expects that the BIOS or kernel defines a range in the EFI memory map with EFI_MEMORY_SP. and the resultant ranges mean that it's 100% capacity is reserved for applications. like, all of it. reserved. no sharing. main character energy only π
π OPTIONS π
-r,--region=β restricts the operation to devices belonging to the specified region(s). so a device-dax region is a contiguous range of memory that hosts one or more/dev/daxX.Ydevices, where X is the region id and Y is the device instance id. iykyk π«Ά-s,--size=β for regions that support dax device cretion, set the device size in bytes. otherwise it defaults to the maximum size specified by region. this option supports the suffixes"k"or"K"for KiB,"m"or"M"for MiB,"g"or"G"for GiB and"t"or"T"for TiB. π
and listen β the size must be a multiple of the region alignment. no cap, don't try to be slick π
-a,--alignβ applications that want to establish dax memory mappings with page table entries greater than system base page size (4Kon x86) need a device that is sufficiently aligned. this defaults to2M. note that"devdax"mode enforces all mappings to be aligned to this value, i.e. it fails unaligned mapping attempts. so like... she will not be flexible about it π--inputβ applications that want to select ranges assigned to a device-dax instance, or wanting to establish previously created devices, can pass an input JSON file. the file option lets a user pass a JSON object similar to the one listed with"daxctl list". π
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.
β οΈ ok important: 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. no [ ], bestie. she said single. π
ββοΈ
-u,--humanβ by default the command will output machine-friendly raw-integer data. instead, with this flag, numbers representing storage size will be formatted as human readable strings with units, other fields are converted to hexadecimal strings. it's giving "make it readable for the girlies" β¨-v,--verboseβ emit more debug messages. loud and proud, we love that for her π₯
π COPYRIGHT π
Copyright Β© 2016 - 2022, 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]
go read those next, bestie, they're all connected π
and that's the page!! this came from daxctl, dated 2026-06-30, and yeah the header up top said DAXCTL-CREATE-DEVICE(1) because that's literally her whole title π
slay, go make some devices π¦β¨
π¦ where this page comes from
- arch rolling: ndctl 85-1 Β· LGPL-2.1-only AND GPL-2.0-only AND CC0-1.0 AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms