v0.5.0 (2026-11-28)
Kuroneko.Gadget.Inputsends a device's reports to a process it starts,{module, arg}in place of the device's path, for input that goes elsewhere than the gadget, such as over Bluetooth; such reports wake nothing.:pointer_modesets the absolute pointer's mode where no gadget's:mousefunction tells it
v0.4.0 (2026-11-27)
The functions follow Linux's USB gadget function drivers, a module for each, which the built-in kinds are instances of. Breaking changes:
Kuroneko.Gadget.Function, a behaviour for a kernel function driver:Kuroneko.Gadget.HID(any HID device by its report descriptor, the keyboard and mice among them),Kuroneko.Gadget.MassStorage,Kuroneko.Gadget.NCM,Kuroneko.Gadget.UAC2,Kuroneko.Gadget.ACM(a serial port, new) andKuroneko.Gadget.FunctionFS(new: functions written in Elixir, with thekuroneko_ffsprogram). Their instances go in the functions as{Module, name: "x", ...};:keyboard,:storageand the other kinds stay as shorthands, and{:audio, microphone: ..., speaker: ...}is one tooKuroneko.Gadget.HID's keyboard and pointer input isKuroneko.Gadget.Input;type/2returns at once and types in the process, andrelease_all/1stops itKuroneko.Gadget.StorageisKuroneko.Gadget.MassStorage::namenames the function (was:storage),:assays how a drive holds its image,:disk,:cd,:dvdor:bd(was:cdromand:disc), also inmedium/1,luns/1islun_count/1, and an image of ISO 9660 or UDF is a disc by its content, not its name- A storage function keeps its drives' media when its LUNs change, in place
replug/1is a call to theKuroneko.Gadgetprocess, which keeps the gadget off the bus for its:replug_ms- Errors of configfs are
{:configfs, path, reason}; a function's error is no longer wrapped with the function - Options are checked: unknown ones and wrong values raise in the caller
subscribe/1sends the caller the kinds of the functions each time they change, andunsubscribe/1stops it:functionscan be{module, function, args}, called each time the process starts: a restart by its supervisor sets up the functions saved last (start_link/1,MassStorage.insert/2,Input.pointer/2...)audio/1,hid_device/2,only_gadget/1and the:gadgetapplication environment are gone:instances/1,HID.device/1anddefault_gadget/1tell the sameendpoints/1and the functions' endpoints are%{in: n, out: n}
v0.3.0 (2026-11-23)
- CDs whose image keeps the sectors as the disc has them, a CUE sheet's
BIN:
Kuroneko.Gadget.Storage.insert/2takes their:tracks, audio and data of mode 1 or 2, andmedium/1tells them (the kernel'stracksattribute) - The target sees a drive anew when it changes between optical and
removable, which it only reads when the drive appears: the gadget leaves
the USB bus and comes back (
Kuroneko.Gadget.replug/1,:replug) - Ejecting a medium the target has locked, such as a mounted disc, first
asks the target to eject it, as an optical drive's button does (the
kernel's
eject_request), and gives it:waitmilliseconds; then it is forced out and the target sees the drive anew manage_networks: trueputs the network functions always in hand, so that functions without one remove them all
v0.2.0 (2026-11-23)
- Several functions of a kind, each with a name: two storage functions,
two networks, two keyboards;
Kuroneko.Gadget.instances/1tells them - A storage function with several logical units, the kernel's LUNs, each a
drive the target sees:
{:storage, luns: 3}, up to 16 on the endpoints of one; a change of their number keeps the media of the LUNs that stay.Kuroneko.Gadget.Storagetakes:storageand:lunfor one, and tells them all withluns/1andmedia/1 - Network functions as KVM functions when asked for with
:network, other networks with addresses that stay across boots;instances/1tells each network's interface and addresses - The device controller's endpoints as a budget,
:endpoints, andKuroneko.Gadget.endpoints/1;endpoints_in_use/1tells how many the gadget's functions take now Kuroneko.Gadget.Storage: the optical drive holds a CD, a DVD or a BD (disc:, a DVD by default), so that images over 2.3 GB, which a CD cannot address, go in whole. It needs the kernel'sprofileattribute on the LUN; without it the drive holds CDs, as before
v0.1.0 (2026-11-21)
First version, moved out of nano_kvm_go (where it was NanoKVMGo.USB,
NanoKVMGo.HID and NanoKVMGo.Storage):
Kuroneko.Gadget: the keyboard, mouse, relative mouse, mass storage, microphone and speaker functions on a configfs gadget the system set up; the formats of the USB audio, the network's addresses, the state and speed of the connectionKuroneko.Gadget.HID: keyboard, mouse, pen and touch input, waking a target that sleepsKuroneko.Gadget.Storage: disk images as a removable drive or a CD-ROM- What was the NanoKVM-Go's is now an option: the gadget (the only one in configfs by default), the names the target sees, the largest packets of the device controller, the network function and how its addresses are kept