dbddf429dc514 (Alex Dewar 2019-08-25 10:49:16 +0100 1) /* SPDX-License-Identifier: GPL-2.0 */
cd1ae0e49bdd8 (Jeff Dike 2007-10-16 01:27:29 -0700 2) /*
cd1ae0e49bdd8 (Jeff Dike 2007-10-16 01:27:29 -0700 3) * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 4) */
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 5)
cd1ae0e49bdd8 (Jeff Dike 2007-10-16 01:27:29 -0700 6) #ifndef __DAEMON_H__
cd1ae0e49bdd8 (Jeff Dike 2007-10-16 01:27:29 -0700 7) #define __DAEMON_H__
cd1ae0e49bdd8 (Jeff Dike 2007-10-16 01:27:29 -0700 8)
37185b3324087 (Al Viro 2012-10-08 03:27:32 +0100 9) #include <net_user.h>
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 10)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 11) #define SWITCH_VERSION 3
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 12)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 13) struct daemon_data {
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 14) char *sock_type;
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 15) char *ctl_sock;
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 16) void *ctl_addr;
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 17) void *data_addr;
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 18) void *local_addr;
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 19) int fd;
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 20) int control;
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 21) void *dev;
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 22) };
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 23)
5e7672ec3f059 (Jeff Dike 2006-09-27 01:50:33 -0700 24) extern const struct net_user_info daemon_user_info;
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 25)
cd1ae0e49bdd8 (Jeff Dike 2007-10-16 01:27:29 -0700 26) extern int daemon_user_write(int fd, void *buf, int len,
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 27) struct daemon_data *pri);
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 28)
cd1ae0e49bdd8 (Jeff Dike 2007-10-16 01:27:29 -0700 29) #endif