core.h (186a73dc9a81b087d0708f21a990615957ec9c1c) | core.h (52ff872055e06af10f94b8853c946f07ed8a0672) |
---|---|
1/* 2 * net/tipc/core.h: Include file for TIPC global declarations 3 * 4 * Copyright (c) 2005-2006, 2013 Ericsson AB 5 * Copyright (c) 2005-2007, 2010-2013, Wind River Systems 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 42 unchanged lines hidden (view full) --- 51#include <linux/interrupt.h> 52#include <linux/atomic.h> 53#include <asm/hardirq.h> 54#include <linux/netdevice.h> 55#include <linux/in.h> 56#include <linux/list.h> 57#include <linux/slab.h> 58#include <linux/vmalloc.h> | 1/* 2 * net/tipc/core.h: Include file for TIPC global declarations 3 * 4 * Copyright (c) 2005-2006, 2013 Ericsson AB 5 * Copyright (c) 2005-2007, 2010-2013, Wind River Systems 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 42 unchanged lines hidden (view full) --- 51#include <linux/interrupt.h> 52#include <linux/atomic.h> 53#include <asm/hardirq.h> 54#include <linux/netdevice.h> 55#include <linux/in.h> 56#include <linux/list.h> 57#include <linux/slab.h> 58#include <linux/vmalloc.h> |
59#include <linux/rtnetlink.h> |
|
59 | 60 |
60 | |
61#define TIPC_MOD_VER "2.0.0" 62 63#define ULTRA_STRING_MAX_LEN 32768 64#define TIPC_MAX_SUBSCRIPTIONS 65535 65#define TIPC_MAX_PUBLICATIONS 65535 66 67struct tipc_msg; /* msg.h */ 68 --- 15 unchanged lines hidden (view full) --- 84/* 85 * Other global variables 86 */ 87extern int tipc_random __read_mostly; 88 89/* 90 * Routines available to privileged subsystems 91 */ | 61#define TIPC_MOD_VER "2.0.0" 62 63#define ULTRA_STRING_MAX_LEN 32768 64#define TIPC_MAX_SUBSCRIPTIONS 65535 65#define TIPC_MAX_PUBLICATIONS 65535 66 67struct tipc_msg; /* msg.h */ 68 --- 15 unchanged lines hidden (view full) --- 84/* 85 * Other global variables 86 */ 87extern int tipc_random __read_mostly; 88 89/* 90 * Routines available to privileged subsystems 91 */ |
92int tipc_handler_start(void); 93void tipc_handler_stop(void); | |
94int tipc_netlink_start(void); 95void tipc_netlink_stop(void); 96int tipc_socket_init(void); 97void tipc_socket_stop(void); 98int tipc_sock_create_local(int type, struct socket **res); 99void tipc_sock_release_local(struct socket *sock); 100int tipc_sock_accept_local(struct socket *sock, struct socket **newsock, 101 int flags); 102 103#ifdef CONFIG_SYSCTL 104int tipc_register_sysctl(void); 105void tipc_unregister_sysctl(void); 106#else 107#define tipc_register_sysctl() 0 108#define tipc_unregister_sysctl() 109#endif 110 111/* | 92int tipc_netlink_start(void); 93void tipc_netlink_stop(void); 94int tipc_socket_init(void); 95void tipc_socket_stop(void); 96int tipc_sock_create_local(int type, struct socket **res); 97void tipc_sock_release_local(struct socket *sock); 98int tipc_sock_accept_local(struct socket *sock, struct socket **newsock, 99 int flags); 100 101#ifdef CONFIG_SYSCTL 102int tipc_register_sysctl(void); 103void tipc_unregister_sysctl(void); 104#else 105#define tipc_register_sysctl() 0 106#define tipc_unregister_sysctl() 107#endif 108 109/* |
112 * TIPC timer and signal code | 110 * TIPC timer code |
113 */ 114typedef void (*Handler) (unsigned long); 115 | 111 */ 112typedef void (*Handler) (unsigned long); 113 |
116u32 tipc_k_signal(Handler routine, unsigned long argument); 117 | |
118/** 119 * k_init_timer - initialize a timer 120 * @timer: pointer to timer structure 121 * @routine: pointer to routine to invoke when timer expires 122 * @argument: value to pass to routine when timer expires 123 * 124 * Timer must be initialized before use (and terminated when no longer needed). 125 */ --- 80 unchanged lines hidden --- | 114/** 115 * k_init_timer - initialize a timer 116 * @timer: pointer to timer structure 117 * @routine: pointer to routine to invoke when timer expires 118 * @argument: value to pass to routine when timer expires 119 * 120 * Timer must be initialized before use (and terminated when no longer needed). 121 */ --- 80 unchanged lines hidden --- |