]> git.baikalelectronics.ru Git - kernel.git/commit
net: qrtr: Inform open sockets about new controller
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 7 Jun 2017 21:07:39 +0000 (14:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Jun 2017 15:34:57 +0000 (11:34 -0400)
commitc10d553e3ff94cffe6f01dd779b07d461ab6f5f2
tree669f69d4c0997832483d89fb4dc344c74d12efe7
parent668375eb855e39c27daf79f26780a4fd2de91ef6
net: qrtr: Inform open sockets about new controller

As the higher level communication only deals with "services" the
a service directory is required to keep track of local and remote
services. In order for qrtr clients to be informed about when the
service directory implementation is available some event needs to be
passed to them.

Rather than introducing support for broadcasting such a message in-band
to all open local sockets we flag each socket with ENETRESET, as there
are no other expected operations that would benefit from having support
from locally broadcasting messages.

Cc: Courtney Cavin <ccavin@gmail.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/qrtr/qrtr.c