Re: [RFC net-next 04/10] devlink: always check if the devlink instance is registered

Jiri Pirko
2023-01-03T12:26:38Z

Sat, Dec 17, 2022 at 02:19:47AM CET, kuba@kernel.org wrote:

[...]

>+bool devl_is_alive(struct devlink *devlink)
>+{
>+ return xa_get_mark(&devlinks, devlink->index, DEVLINK_REGISTERED);
>+}
>+EXPORT_SYMBOL_GPL(devl_is_alive);

Why is this exported? Drivers should not use this, as you said.