lib: sbi_domain: Introduce sbi_domain_find_by_name() function

Add sbi_domain_find_by_name() to allow driver locate domain instance
using domain name. This also means domain names must be unique.

Signed-off-by: Anup Patel <anup.patel@oss.qualcomm.com>
Reviewed-by: Pawandeep Oza <pawandeep.oza@oss.qualcomm.com>
Tested-by: Pawandeep Oza <pawandeep.oza@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260923032359.4041876-5-anup.patel@oss.qualcomm.com
Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
Anup Patel authored and Anup Patel committed 2026-10-25 14:30:46 +05:30
1 parent db877c0908
commit bdd7874991
2 files changed
+25 -1

No files matched your search

+7
View File
@@ -323,6 +323,13 @@ bool sbi_domain_check_addr_range(const struct sbi_domain *dom,
unsigned long mode,
unsigned long access_flags);
/**
* Find a domain by name
* @param name Name of the domain
* @return pointer to the domain or NULL upon failure
*/
struct sbi_domain *sbi_domain_find_by_name(const char *name);
/** Dump domain details on the console */
void sbi_domain_dump(const struct sbi_domain *dom, const char *suffix);