3 ms·
...well, technically there's a RAII-like implementation in Linux kernel https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/include/linux/cle
by stefanos82 2y ago
...well, technically there's a RAII-like implementation in Linux kernel
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/include/linux/cleanup.h?h=v6.11.5 https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux...
which is explained here https://lwn.net/Articles/934679/ https://lwn.net/Articles/934679/