diff options
Diffstat (limited to 'net/tipc/user_reg.c')
-rw-r--r-- | net/tipc/user_reg.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/net/tipc/user_reg.c b/net/tipc/user_reg.c index 35ec7dc8211d..106200d76587 100644 --- a/net/tipc/user_reg.c +++ b/net/tipc/user_reg.c | |||
@@ -114,10 +114,10 @@ static void reg_callback(struct tipc_user *user_ptr) | |||
114 | } | 114 | } |
115 | 115 | ||
116 | /** | 116 | /** |
117 | * reg_start - activate TIPC user registry | 117 | * tipc_reg_start - activate TIPC user registry |
118 | */ | 118 | */ |
119 | 119 | ||
120 | int reg_start(void) | 120 | int tipc_reg_start(void) |
121 | { | 121 | { |
122 | u32 u; | 122 | u32 u; |
123 | int res; | 123 | int res; |
@@ -127,17 +127,17 @@ int reg_start(void) | |||
127 | 127 | ||
128 | for (u = 1; u <= MAX_USERID; u++) { | 128 | for (u = 1; u <= MAX_USERID; u++) { |
129 | if (users[u].callback) | 129 | if (users[u].callback) |
130 | k_signal((Handler)reg_callback, | 130 | tipc_k_signal((Handler)reg_callback, |
131 | (unsigned long)&users[u]); | 131 | (unsigned long)&users[u]); |
132 | } | 132 | } |
133 | return TIPC_OK; | 133 | return TIPC_OK; |
134 | } | 134 | } |
135 | 135 | ||
136 | /** | 136 | /** |
137 | * reg_stop - shut down & delete TIPC user registry | 137 | * tipc_reg_stop - shut down & delete TIPC user registry |
138 | */ | 138 | */ |
139 | 139 | ||
140 | void reg_stop(void) | 140 | void tipc_reg_stop(void) |
141 | { | 141 | { |
142 | int id; | 142 | int id; |
143 | 143 | ||
@@ -184,7 +184,7 @@ int tipc_attach(u32 *userid, tipc_mode_event cb, void *usr_handle) | |||
184 | atomic_inc(&tipc_user_count); | 184 | atomic_inc(&tipc_user_count); |
185 | 185 | ||
186 | if (cb && (tipc_mode != TIPC_NOT_RUNNING)) | 186 | if (cb && (tipc_mode != TIPC_NOT_RUNNING)) |
187 | k_signal((Handler)reg_callback, (unsigned long)user_ptr); | 187 | tipc_k_signal((Handler)reg_callback, (unsigned long)user_ptr); |
188 | return TIPC_OK; | 188 | return TIPC_OK; |
189 | } | 189 | } |
190 | 190 | ||
@@ -223,10 +223,10 @@ void tipc_detach(u32 userid) | |||
223 | } | 223 | } |
224 | 224 | ||
225 | /** | 225 | /** |
226 | * reg_add_port - register a user's driver port | 226 | * tipc_reg_add_port - register a user's driver port |
227 | */ | 227 | */ |
228 | 228 | ||
229 | int reg_add_port(struct user_port *up_ptr) | 229 | int tipc_reg_add_port(struct user_port *up_ptr) |
230 | { | 230 | { |
231 | struct tipc_user *user_ptr; | 231 | struct tipc_user *user_ptr; |
232 | 232 | ||
@@ -245,10 +245,10 @@ int reg_add_port(struct user_port *up_ptr) | |||
245 | } | 245 | } |
246 | 246 | ||
247 | /** | 247 | /** |
248 | * reg_remove_port - deregister a user's driver port | 248 | * tipc_reg_remove_port - deregister a user's driver port |
249 | */ | 249 | */ |
250 | 250 | ||
251 | int reg_remove_port(struct user_port *up_ptr) | 251 | int tipc_reg_remove_port(struct user_port *up_ptr) |
252 | { | 252 | { |
253 | if (up_ptr->user_ref == 0) | 253 | if (up_ptr->user_ref == 0) |
254 | return TIPC_OK; | 254 | return TIPC_OK; |