daemon.h 500 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
  3. * Licensed under the GPL
  4. */
  5. #ifndef __DAEMON_H__
  6. #define __DAEMON_H__
  7. #include <net_user.h>
  8. #define SWITCH_VERSION 3
  9. struct daemon_data {
  10. char *sock_type;
  11. char *ctl_sock;
  12. void *ctl_addr;
  13. void *data_addr;
  14. void *local_addr;
  15. int fd;
  16. int control;
  17. void *dev;
  18. };
  19. extern const struct net_user_info daemon_user_info;
  20. extern int daemon_user_write(int fd, void *buf, int len,
  21. struct daemon_data *pri);
  22. #endif