tipc: Remove user registry subsystem
Eliminates routines, data structures, and files that make up TIPC's user registry. The user registry is no longer needed since the native API routines that utilized it no longer exist and there are no longer any internal TIPC services that use it. Signed-off-by: Allan Stephens <Allan.Stephens@windriver.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

zatwierdzone przez
David S. Miller

rodzic
aa70200e00
commit
b0c1e928c8
@@ -38,7 +38,6 @@
|
||||
#include "config.h"
|
||||
#include "port.h"
|
||||
#include "name_table.h"
|
||||
#include "user_reg.h"
|
||||
|
||||
/* Connection management: */
|
||||
#define PROBING_INTERVAL 3600000 /* [ms] => 1 h */
|
||||
@@ -272,7 +271,6 @@ int tipc_deleteport(u32 ref)
|
||||
tipc_nodesub_unsubscribe(&p_ptr->subscription);
|
||||
}
|
||||
if (p_ptr->user_port) {
|
||||
tipc_reg_remove_port(p_ptr->user_port);
|
||||
kfree(p_ptr->user_port);
|
||||
}
|
||||
|
||||
@@ -934,12 +932,10 @@ void tipc_acknowledge(u32 ref, u32 ack)
|
||||
}
|
||||
|
||||
/*
|
||||
* tipc_createport(): user level call. Will add port to
|
||||
* registry if non-zero user_ref.
|
||||
* tipc_createport(): user level call.
|
||||
*/
|
||||
|
||||
int tipc_createport(u32 user_ref,
|
||||
void *usr_handle,
|
||||
int tipc_createport(void *usr_handle,
|
||||
unsigned int importance,
|
||||
tipc_msg_err_event error_cb,
|
||||
tipc_named_msg_err_event named_error_cb,
|
||||
@@ -966,7 +962,6 @@ int tipc_createport(u32 user_ref,
|
||||
}
|
||||
|
||||
p_ptr->user_port = up_ptr;
|
||||
up_ptr->user_ref = user_ref;
|
||||
up_ptr->usr_handle = usr_handle;
|
||||
up_ptr->ref = p_ptr->publ.ref;
|
||||
up_ptr->err_cb = error_cb;
|
||||
@@ -976,8 +971,6 @@ int tipc_createport(u32 user_ref,
|
||||
up_ptr->named_msg_cb = named_msg_cb;
|
||||
up_ptr->conn_msg_cb = conn_msg_cb;
|
||||
up_ptr->continue_event_cb = continue_event_cb;
|
||||
INIT_LIST_HEAD(&up_ptr->uport_list);
|
||||
tipc_reg_add_port(up_ptr);
|
||||
*portref = p_ptr->publ.ref;
|
||||
tipc_port_unlock(p_ptr);
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user