rmnet_ctl.h 720 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
  3. *
  4. * RMNET_CTL header
  5. *
  6. */
  7. #ifndef _RMNET_CTL_H_
  8. #define _RMNET_CTL_H_
  9. #include <linux/skbuff.h>
  10. enum rmnet_ctl_log_lvl {
  11. RMNET_CTL_LOG_CRIT,
  12. RMNET_CTL_LOG_ERR,
  13. RMNET_CTL_LOG_INFO,
  14. RMNET_CTL_LOG_DEBUG,
  15. };
  16. struct rmnet_ctl_client_hooks {
  17. void (*ctl_dl_client_hook)(struct sk_buff *skb);
  18. };
  19. struct rmnet_ctl_client_if {
  20. void * (*reg)(struct rmnet_ctl_client_hooks *hook);
  21. int (*dereg)(void *handle);
  22. int (*send)(void *handle, struct sk_buff *skb);
  23. void (*log)(enum rmnet_ctl_log_lvl lvl, const char *msg, int rc,
  24. const void *data, unsigned int len);
  25. };
  26. #endif /* _RMNET_CTL_H_ */