[PATCH] libnvme: Introduce nvmf_hostid_generate function

Daniel Wagner dwagner at suse.de
Wed Apr 17 00:47:54 PDT 2024


On Tue, Apr 16, 2024 at 06:32:56AM +0000, Israel Rukshin wrote:
>  /**
>   * nvmf_hostnqn_generate() - Generate a machine specific host nqn
> - * Returns: An nvm namespace qualified name string based on the machine
> - * identifier, or NULL if not successful.
> + * @hostid:		Host identifier
> + *
> + * If @hostid is NULL, the function generates it based on the machine
> + * identifier.
> + *
> + * Return: On success, an NVMe Qualified Name for host identification. This
> + * name is based on the given host identifier. On failure, NULL.
> + */
> +char *nvmf_hostnqn_generate(char *hostid);

This breaks the API. The only way around this is to introduce a complete
new function as far I know.



More information about the Linux-nvme mailing list