~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/atmsvc.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2 /* atmsvc.h - ATM signaling kernel-demon interface definitions */
  3  
  4 /* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */
  5  
  6 
  7 #ifndef _LINUX_ATMSVC_H
  8 #define _LINUX_ATMSVC_H
  9 
 10 #include <linux/atmapi.h>
 11 #include <linux/atm.h>
 12 #include <linux/atmioc.h>
 13 
 14 
 15 #define ATMSIGD_CTRL _IO('a',ATMIOC_SPECIAL)
 16                                 /* become ATM signaling demon control socket */
 17 
 18 enum atmsvc_msg_type { as_catch_null, as_bind, as_connect, as_accept, as_reject,
 19                        as_listen, as_okay, as_error, as_indicate, as_close,
 20                        as_itf_notify, as_modify, as_identify, as_terminate,
 21                        as_addparty, as_dropparty };
 22 
 23 struct atmsvc_msg {
 24         enum atmsvc_msg_type type;
 25         atm_kptr_t vcc;
 26         atm_kptr_t listen_vcc;          /* indicate */
 27         int reply;                      /* for okay and close:             */
 28                                         /*   < 0: error before active      */
 29                                         /*        (sigd has discarded ctx) */
 30                                         /*   ==0: success                  */
 31                                         /*   > 0: error when active (still */
 32                                         /*        need to close)           */
 33         struct sockaddr_atmpvc pvc;     /* indicate, okay (connect) */
 34         struct sockaddr_atmsvc local;   /* local SVC address */
 35         struct atm_qos qos;             /* QOS parameters */
 36         struct atm_sap sap;             /* SAP */
 37         unsigned int session;           /* for p2pm */
 38         struct sockaddr_atmsvc svc;     /* SVC address */
 39 } __ATM_API_ALIGN;
 40 
 41 /*
 42  * Message contents: see ftp://icaftp.epfl.ch/pub/linux/atm/docs/isp-*.tar.gz
 43  */
 44 
 45 /*
 46  * Some policy stuff for atmsigd and for net/atm/svc.c. Both have to agree on
 47  * what PCR is used to request bandwidth from the device driver. net/atm/svc.c
 48  * tries to do better than that, but only if there's no routing decision (i.e.
 49  * if signaling only uses one ATM interface).
 50  */
 51 
 52 #define SELECT_TOP_PCR(tp) ((tp).pcr ? (tp).pcr : \
 53   (tp).max_pcr && (tp).max_pcr != ATM_MAX_PCR ? (tp).max_pcr : \
 54   (tp).min_pcr ? (tp).min_pcr : ATM_MAX_PCR)
 55 
 56 #endif
 57 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php