diff options
| author | Liam Girdwood <lrg@slimlogic.co.uk> | 2010-11-03 10:11:27 -0400 |
|---|---|---|
| committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2010-11-03 10:11:27 -0400 |
| commit | 8f987768eb99631374f4ab0bb19cd062baf1397d (patch) | |
| tree | b89aa5c207f7ba6a688f45657424b937f17ceb8a /include/net/tipc | |
| parent | 63f7526f26f0a9291ac3f7a986aa18ebfb61ec19 (diff) | |
| parent | c8ddb2713c624f432fa5fe3c7ecffcdda46ea0d4 (diff) | |
Merge commit 'v2.6.37-rc1' into for-2.6.37
Diffstat (limited to 'include/net/tipc')
| -rw-r--r-- | include/net/tipc/tipc.h | 71 | ||||
| -rw-r--r-- | include/net/tipc/tipc_msg.h | 10 | ||||
| -rw-r--r-- | include/net/tipc/tipc_port.h | 2 |
3 files changed, 5 insertions, 78 deletions
diff --git a/include/net/tipc/tipc.h b/include/net/tipc/tipc.h index 15af6dca0b49..1e0645e1eed2 100644 --- a/include/net/tipc/tipc.h +++ b/include/net/tipc/tipc.h | |||
| @@ -50,8 +50,6 @@ | |||
| 50 | * TIPC operating mode routines | 50 | * TIPC operating mode routines |
| 51 | */ | 51 | */ |
| 52 | 52 | ||
| 53 | u32 tipc_get_addr(void); | ||
| 54 | |||
| 55 | #define TIPC_NOT_RUNNING 0 | 53 | #define TIPC_NOT_RUNNING 0 |
| 56 | #define TIPC_NODE_MODE 1 | 54 | #define TIPC_NODE_MODE 1 |
| 57 | #define TIPC_NET_MODE 2 | 55 | #define TIPC_NET_MODE 2 |
| @@ -62,8 +60,6 @@ int tipc_attach(unsigned int *userref, tipc_mode_event, void *usr_handle); | |||
| 62 | 60 | ||
| 63 | void tipc_detach(unsigned int userref); | 61 | void tipc_detach(unsigned int userref); |
| 64 | 62 | ||
| 65 | int tipc_get_mode(void); | ||
| 66 | |||
| 67 | /* | 63 | /* |
| 68 | * TIPC port manipulation routines | 64 | * TIPC port manipulation routines |
| 69 | */ | 65 | */ |
| @@ -153,12 +149,6 @@ int tipc_disconnect(u32 portref); | |||
| 153 | 149 | ||
| 154 | int tipc_shutdown(u32 ref); | 150 | int tipc_shutdown(u32 ref); |
| 155 | 151 | ||
| 156 | int tipc_isconnected(u32 portref, int *isconnected); | ||
| 157 | |||
| 158 | int tipc_peer(u32 portref, struct tipc_portid *peer); | ||
| 159 | |||
| 160 | int tipc_ref_valid(u32 portref); | ||
| 161 | |||
| 162 | /* | 152 | /* |
| 163 | * TIPC messaging routines | 153 | * TIPC messaging routines |
| 164 | */ | 154 | */ |
| @@ -170,38 +160,12 @@ int tipc_send(u32 portref, | |||
| 170 | unsigned int num_sect, | 160 | unsigned int num_sect, |
| 171 | struct iovec const *msg_sect); | 161 | struct iovec const *msg_sect); |
| 172 | 162 | ||
| 173 | int tipc_send_buf(u32 portref, | ||
| 174 | struct sk_buff *buf, | ||
| 175 | unsigned int dsz); | ||
| 176 | |||
| 177 | int tipc_send2name(u32 portref, | 163 | int tipc_send2name(u32 portref, |
| 178 | struct tipc_name const *name, | 164 | struct tipc_name const *name, |
| 179 | u32 domain, | 165 | u32 domain, |
| 180 | unsigned int num_sect, | 166 | unsigned int num_sect, |
| 181 | struct iovec const *msg_sect); | 167 | struct iovec const *msg_sect); |
| 182 | 168 | ||
| 183 | int tipc_send_buf2name(u32 portref, | ||
| 184 | struct tipc_name const *name, | ||
| 185 | u32 domain, | ||
| 186 | struct sk_buff *buf, | ||
| 187 | unsigned int dsz); | ||
| 188 | |||
| 189 | int tipc_forward2name(u32 portref, | ||
| 190 | struct tipc_name const *name, | ||
| 191 | u32 domain, | ||
| 192 | unsigned int section_count, | ||
| 193 | struct iovec const *msg_sect, | ||
| 194 | struct tipc_portid const *origin, | ||
| 195 | unsigned int importance); | ||
| 196 | |||
| 197 | int tipc_forward_buf2name(u32 portref, | ||
| 198 | struct tipc_name const *name, | ||
| 199 | u32 domain, | ||
| 200 | struct sk_buff *buf, | ||
| 201 | unsigned int dsz, | ||
| 202 | struct tipc_portid const *orig, | ||
| 203 | unsigned int importance); | ||
| 204 | |||
| 205 | int tipc_send2port(u32 portref, | 169 | int tipc_send2port(u32 portref, |
| 206 | struct tipc_portid const *dest, | 170 | struct tipc_portid const *dest, |
| 207 | unsigned int num_sect, | 171 | unsigned int num_sect, |
| @@ -212,46 +176,11 @@ int tipc_send_buf2port(u32 portref, | |||
| 212 | struct sk_buff *buf, | 176 | struct sk_buff *buf, |
| 213 | unsigned int dsz); | 177 | unsigned int dsz); |
| 214 | 178 | ||
| 215 | int tipc_forward2port(u32 portref, | ||
| 216 | struct tipc_portid const *dest, | ||
| 217 | unsigned int num_sect, | ||
| 218 | struct iovec const *msg_sect, | ||
| 219 | struct tipc_portid const *origin, | ||
| 220 | unsigned int importance); | ||
| 221 | |||
| 222 | int tipc_forward_buf2port(u32 portref, | ||
| 223 | struct tipc_portid const *dest, | ||
| 224 | struct sk_buff *buf, | ||
| 225 | unsigned int dsz, | ||
| 226 | struct tipc_portid const *orig, | ||
| 227 | unsigned int importance); | ||
| 228 | |||
| 229 | int tipc_multicast(u32 portref, | 179 | int tipc_multicast(u32 portref, |
| 230 | struct tipc_name_seq const *seq, | 180 | struct tipc_name_seq const *seq, |
| 231 | u32 domain, /* currently unused */ | 181 | u32 domain, /* currently unused */ |
| 232 | unsigned int section_count, | 182 | unsigned int section_count, |
| 233 | struct iovec const *msg); | 183 | struct iovec const *msg); |
| 234 | |||
| 235 | #if 0 | ||
| 236 | int tipc_multicast_buf(u32 portref, | ||
| 237 | struct tipc_name_seq const *seq, | ||
| 238 | u32 domain, | ||
| 239 | void *buf, | ||
| 240 | unsigned int size); | ||
| 241 | #endif | ||
| 242 | |||
| 243 | /* | ||
| 244 | * TIPC subscription routines | ||
| 245 | */ | ||
| 246 | |||
| 247 | int tipc_ispublished(struct tipc_name const *name); | ||
| 248 | |||
| 249 | /* | ||
| 250 | * Get number of available nodes within specified domain (excluding own node) | ||
| 251 | */ | ||
| 252 | |||
| 253 | unsigned int tipc_available_nodes(const u32 domain); | ||
| 254 | |||
| 255 | #endif | 184 | #endif |
| 256 | 185 | ||
| 257 | #endif | 186 | #endif |
diff --git a/include/net/tipc/tipc_msg.h b/include/net/tipc/tipc_msg.h index 2e159a812f83..ffe50b4e7b93 100644 --- a/include/net/tipc/tipc_msg.h +++ b/include/net/tipc/tipc_msg.h | |||
| @@ -107,7 +107,7 @@ static inline u32 msg_hdr_sz(struct tipc_msg *m) | |||
| 107 | 107 | ||
| 108 | static inline int msg_short(struct tipc_msg *m) | 108 | static inline int msg_short(struct tipc_msg *m) |
| 109 | { | 109 | { |
| 110 | return (msg_hdr_sz(m) == 24); | 110 | return msg_hdr_sz(m) == 24; |
| 111 | } | 111 | } |
| 112 | 112 | ||
| 113 | static inline u32 msg_size(struct tipc_msg *m) | 113 | static inline u32 msg_size(struct tipc_msg *m) |
| @@ -117,7 +117,7 @@ static inline u32 msg_size(struct tipc_msg *m) | |||
| 117 | 117 | ||
| 118 | static inline u32 msg_data_sz(struct tipc_msg *m) | 118 | static inline u32 msg_data_sz(struct tipc_msg *m) |
| 119 | { | 119 | { |
| 120 | return (msg_size(m) - msg_hdr_sz(m)); | 120 | return msg_size(m) - msg_hdr_sz(m); |
| 121 | } | 121 | } |
| 122 | 122 | ||
| 123 | static inline unchar *msg_data(struct tipc_msg *m) | 123 | static inline unchar *msg_data(struct tipc_msg *m) |
| @@ -132,17 +132,17 @@ static inline u32 msg_type(struct tipc_msg *m) | |||
| 132 | 132 | ||
| 133 | static inline u32 msg_named(struct tipc_msg *m) | 133 | static inline u32 msg_named(struct tipc_msg *m) |
| 134 | { | 134 | { |
| 135 | return (msg_type(m) == TIPC_NAMED_MSG); | 135 | return msg_type(m) == TIPC_NAMED_MSG; |
| 136 | } | 136 | } |
| 137 | 137 | ||
| 138 | static inline u32 msg_mcast(struct tipc_msg *m) | 138 | static inline u32 msg_mcast(struct tipc_msg *m) |
| 139 | { | 139 | { |
| 140 | return (msg_type(m) == TIPC_MCAST_MSG); | 140 | return msg_type(m) == TIPC_MCAST_MSG; |
| 141 | } | 141 | } |
| 142 | 142 | ||
| 143 | static inline u32 msg_connected(struct tipc_msg *m) | 143 | static inline u32 msg_connected(struct tipc_msg *m) |
| 144 | { | 144 | { |
| 145 | return (msg_type(m) == TIPC_CONN_MSG); | 145 | return msg_type(m) == TIPC_CONN_MSG; |
| 146 | } | 146 | } |
| 147 | 147 | ||
| 148 | static inline u32 msg_errcode(struct tipc_msg *m) | 148 | static inline u32 msg_errcode(struct tipc_msg *m) |
diff --git a/include/net/tipc/tipc_port.h b/include/net/tipc/tipc_port.h index c54917cbfa48..1893aaf49426 100644 --- a/include/net/tipc/tipc_port.h +++ b/include/net/tipc/tipc_port.h | |||
| @@ -88,8 +88,6 @@ void tipc_acknowledge(u32 port_ref,u32 ack); | |||
| 88 | 88 | ||
| 89 | struct tipc_port *tipc_get_port(const u32 ref); | 89 | struct tipc_port *tipc_get_port(const u32 ref); |
| 90 | 90 | ||
| 91 | void *tipc_get_handle(const u32 ref); | ||
| 92 | |||
| 93 | /* | 91 | /* |
| 94 | * The following routines require that the port be locked on entry | 92 | * The following routines require that the port be locked on entry |
| 95 | */ | 93 | */ |
