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

TOMOYO Linux Cross Reference
Linux/include/linux/can/core.h

Version: ~ [ linux-4.15-rc3 ] ~ [ linux-4.14.5 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.68 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.105 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.47 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.87 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.51 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.96 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.39.4 ] ~ [ linux-2.6.38.8 ] ~ [ linux-2.6.37.6 ] ~ [ linux-2.6.36.4 ] ~ [ linux-2.6.35.14 ] ~ [ linux-2.6.34.15 ] ~ [ linux-2.6.33.20 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.27.62 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /*
  3  * linux/can/core.h
  4  *
  5  * Protoypes and definitions for CAN protocol modules using the PF_CAN core
  6  *
  7  * Authors: Oliver Hartkopp <oliver.hartkopp@volkswagen.de>
  8  *          Urs Thuermann   <urs.thuermann@volkswagen.de>
  9  * Copyright (c) 2002-2017 Volkswagen Group Electronic Research
 10  * All rights reserved.
 11  *
 12  */
 13 
 14 #ifndef _CAN_CORE_H
 15 #define _CAN_CORE_H
 16 
 17 #include <linux/can.h>
 18 #include <linux/skbuff.h>
 19 #include <linux/netdevice.h>
 20 
 21 #define CAN_VERSION "20170425"
 22 
 23 /* increment this number each time you change some user-space interface */
 24 #define CAN_ABI_VERSION "9"
 25 
 26 #define CAN_VERSION_STRING "rev " CAN_VERSION " abi " CAN_ABI_VERSION
 27 
 28 #define DNAME(dev) ((dev) ? (dev)->name : "any")
 29 
 30 /**
 31  * struct can_proto - CAN protocol structure
 32  * @type:       type argument in socket() syscall, e.g. SOCK_DGRAM.
 33  * @protocol:   protocol number in socket() syscall.
 34  * @ops:        pointer to struct proto_ops for sock->ops.
 35  * @prot:       pointer to struct proto structure.
 36  */
 37 struct can_proto {
 38         int type;
 39         int protocol;
 40         const struct proto_ops *ops;
 41         struct proto *prot;
 42 };
 43 
 44 /* function prototypes for the CAN networklayer core (af_can.c) */
 45 
 46 extern int  can_proto_register(const struct can_proto *cp);
 47 extern void can_proto_unregister(const struct can_proto *cp);
 48 
 49 int can_rx_register(struct net *net, struct net_device *dev,
 50                     canid_t can_id, canid_t mask,
 51                     void (*func)(struct sk_buff *, void *),
 52                     void *data, char *ident, struct sock *sk);
 53 
 54 extern void can_rx_unregister(struct net *net, struct net_device *dev,
 55                               canid_t can_id, canid_t mask,
 56                               void (*func)(struct sk_buff *, void *),
 57                               void *data);
 58 
 59 extern int can_send(struct sk_buff *skb, int loop);
 60 extern int can_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg);
 61 
 62 #endif /* !_CAN_CORE_H */
 63 

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

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | 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.

osdn.jp