[RFC PATCH v2 2/3] dpll: add netlink events

Stephen Hemminger stephen at networkplumber.org
Wed Aug 3 08:21:51 PDT 2022


On Sun, 26 Jun 2022 22:24:43 +0300
Vadim Fedorenko <vfedorenko at novek.ru> wrote:

> +
> +static cb_t event_cb[] = {
> +	[DPLL_EVENT_DEVICE_CREATE]	= dpll_event_device_create,
> +	[DPLL_EVENT_DEVICE_DELETE]	= dpll_event_device_delete,
> +	[DPLL_EVENT_STATUS_LOCKED]	= dpll_event_status,
> +	[DPLL_EVENT_STATUS_UNLOCKED]	= dpll_event_status,
> +	[DPLL_EVENT_SOURCE_CHANGE]	= dpll_event_source_change,
> +	[DPLL_EVENT_OUTPUT_CHANGE]	= dpll_event_output_change,
> +};

Function tables in kernel should always be const for added security



More information about the linux-arm-kernel mailing list