diff mbox

[RFC,2/3] linux-user: support netlink protocol NETLINK_KOBJECT_UEVENT

Message ID 1454192820-5095-3-git-send-email-laurent@vivier.eu (mailing list archive)
State New, archived
Headers show

Commit Message

Laurent Vivier Jan. 30, 2016, 10:26 p.m. UTC
This is the protocol used by udevd to manage kernel events.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 linux-user/syscall.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Peter Maydell May 13, 2016, 4:42 p.m. UTC | #1
On 30 January 2016 at 22:26, Laurent Vivier <laurent@vivier.eu> wrote:
> This is the protocol used by udevd to manage kernel events.
>
> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
> ---
>  linux-user/syscall.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/linux-user/syscall.c b/linux-user/syscall.c
> index a1ed2f5..790ae49 100644
> --- a/linux-user/syscall.c
> +++ b/linux-user/syscall.c
> @@ -2572,6 +2572,9 @@ static abi_long do_socket(int domain, int type, int protocol)
>              case NETLINK_ROUTE:
>                  fd_trans_register(ret, &target_netlink_route_trans);
>                  break;
> +            case NETLINK_KOBJECT_UEVENT:
> +                /* nothing to do: messages are strings */
> +                break;
>              default:
>                  close(ret);
>                  ret = -EPFNOSUPPORT;

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>

though at 3 lines you might as well have folded it into patch 1 :-)

thanks
-- PMM
diff mbox

Patch

diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index a1ed2f5..790ae49 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -2572,6 +2572,9 @@  static abi_long do_socket(int domain, int type, int protocol)
             case NETLINK_ROUTE:
                 fd_trans_register(ret, &target_netlink_route_trans);
                 break;
+            case NETLINK_KOBJECT_UEVENT:
+                /* nothing to do: messages are strings */
+                break;
             default:
                 close(ret);
                 ret = -EPFNOSUPPORT;