kdbus: add name registry implementation
authorDaniel Mack <daniel@zonque.org>
Thu, 11 Sep 2014 17:00:00 +0000 (19:00 +0200)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 4 Apr 2016 01:12:26 +0000 (10:12 +0900)
commit3a09a9739eca72c948cc44ff9601a9d8ebd16680
tree0fe6c4f105db7c342d6086b422680310a73ea58b
parentdbfb11380b9ceb7c91a54b992f66568c230300aa
kdbus: add name registry implementation

This patch adds the name registry implementation.

Each bus instantiates a name registry to resolve well-known names
into unique connection IDs for message delivery. The registry will
be queried when a message is sent with kdbus_msg.dst_id set to
KDBUS_DST_ID_NAME, or when a registry dump is requested.

It's important to have this registry implemented in the kernel to
implement lookups and take-overs in a race-free way.

Change-Id: Ie03b0697a5dd2b50d04b69009f735b9b9cd8f6da
Signed-off-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paul Osmialowski <p.osmialowsk@samsung.com>
ipc/kdbus/names.c [new file with mode: 0644]
ipc/kdbus/names.h [new file with mode: 0644]