OSDN Git Service

tipc: rename functions defined in subscr.c
authorYing Xue <ying.xue@windriver.com>
Mon, 4 May 2015 02:36:44 +0000 (10:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 May 2015 19:04:00 +0000 (15:04 -0400)
commit57f1d1868fb5d71a20bfb1bc807274471c2ff459
treeeea2c884ece025f8ac5606d52808ce66ad896b18
parent29a1ff6596fc6fbd1a2de0f2301bcd301dfcb4eb
tipc: rename functions defined in subscr.c

When a topology server accepts a connection request from its client,
it allocates a connection instance and a tipc_subscriber structure
object. The former is used to communicate with client, and the latter
is often treated as a subscriber which manages all subscription events
requested from a same client. When a topology server receives a request
of subscribing name services from a client through the connection, it
creates a tipc_subscription structure instance which is seen as a
subscription recording what name services are subscribed. In order to
manage all subscriptions from a same client, topology server links
them into the subscrp_list of the subscriber. So subscriber and
subscription completely represents different meanings respectively,
but function names associated with them make us so confused that we
are unable to easily tell which function is against subscriber and
which is to subscription. So we want to eliminate the confusion by
renaming them.

Signed-off-by: Ying Xue <ying.xue@windriver.com>
Reviewed-by: Jon Maloy <jon.maloy@ericson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/core.c
net/tipc/name_table.c
net/tipc/subscr.c
net/tipc/subscr.h