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, 29 Jun 2015 10:50:36 +0000 (19:50 +0900)
commitf748c49f73043aa139a3a8b3fe31cdbc81245aa9
treeb4d5ce9799de1d0deb48e7b2d77ccbfee8f64b43
parent2014dcbbf97391834b8f84da295b8cd1082268f6
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]