]> git.ipfire.org Git - thirdparty/kmod.git/commit
tools: Extract options_from_array into opt.c
authorTobias Stoeckmann <tobias@stoeckmann.org>
Wed, 23 Oct 2024 21:49:05 +0000 (23:49 +0200)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Thu, 24 Oct 2024 03:10:39 +0000 (22:10 -0500)
commita3787fb134aa9a96db3c97891715108db882c80d
tree1b5cc07e4cee9bb24bd7512fe30f515e486368ef
parentc1deab2be36f4ca7e04a0fd1ef2188fed6cfbbda
tools: Extract options_from_array into opt.c

The function should be used in insmod as well to allow identical
handling of module options between insmod and modprobe.

Prepare using the function in insmod by extracting it into opt.c.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Link: https://github.com/kmod-project/kmod/pull/204
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Makefile.am
meson.build
tools/kmod.h
tools/modprobe.c
tools/opt.c [new file with mode: 0644]
tools/opt.h [new file with mode: 0644]