}
static struct kdbus_name_entry *
-__kdbus_name_lookup(struct kdbus_name_registry *reg, u32 hash, const char *name)
+kdbus_name_lookup(struct kdbus_name_registry *reg, u32 hash, const char *name)
{
struct kdbus_name_entry *e;
mutex_lock(&conn->bus->lock);
down_write(®->rwlock);
- e = __kdbus_name_lookup(reg, hash, name);
+ e = kdbus_name_lookup(reg, hash, name);
if (!e) {
ret = -ESRCH;
goto exit_unlock;
u32 hash = kdbus_str_hash(name);
down_read(®->rwlock);
- e = __kdbus_name_lookup(reg, hash, name);
+ e = kdbus_name_lookup(reg, hash, name);
if (e)
return e;
up_read(®->rwlock);
down_write(®->rwlock);
hash = kdbus_str_hash(name);
- e = __kdbus_name_lookup(reg, hash, name);
+ e = kdbus_name_lookup(reg, hash, name);
if (e) {
/* connection already owns that name */
if (e->conn == conn) {