mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-11-19 18:21:41 +00:00
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:
1 parent
db877c0908
commit
bdd7874991
2 files changed
+25
-1
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user