summaryrefslogtreecommitdiff
path: root/connection.h
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-05-28 10:02:01 +0200
committerKay Sievers <kay@vrfy.org>2013-05-30 05:26:31 +0200
commitf971c4d6c0f148f3ab1a0acbc89c964796fc41c5 (patch)
tree3ff544a76be131e0da8995fc0e31328284fb5483 /connection.h
parent789cd310f26cfb8fb62673e49058f0c93df8ea42 (diff)
downloadkdbus-bus-f971c4d6c0f148f3ab1a0acbc89c964796fc41c5.tar.gz
kdbus-bus-f971c4d6c0f148f3ab1a0acbc89c964796fc41c5.tar.bz2
kdbus-bus-f971c4d6c0f148f3ab1a0acbc89c964796fc41c5.zip
pool: use shmem file as backing store
Diffstat (limited to 'connection.h')
-rw-r--r--connection.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/connection.h b/connection.h
index dbc86bac5f6..98651ebf199 100644
--- a/connection.h
+++ b/connection.h
@@ -27,10 +27,12 @@ enum kdbus_conn_type {
KDBUS_CONN_CONTROL_BUS_OWNER, /* fd to hold a bus */
KDBUS_CONN_EP, /* new fd of a bus node */
KDBUS_CONN_EP_CONNECTED, /* connection after HELLO */
+ KDBUS_CONN_EP_DISCONNECTED, /* closed connection */
KDBUS_CONN_EP_OWNER, /* fd to hold an endpoint */
};
struct kdbus_conn {
+ struct kref kref;
enum kdbus_conn_type type;
struct kdbus_ns *ns;
union {
@@ -66,15 +68,12 @@ struct kdbus_conn {
u32 sec_label_len;
#endif
- /* reference to the taks owning the connection */
- struct task_struct *task;
-
/* connection accounting */
unsigned int msg_count;
size_t allocated_size;
- /* userspace-supplied buffer to fill with message data */
- struct kdbus_pool pool;
+ /* buffer to fill with message data */
+ struct kdbus_pool *pool;
};
struct kdbus_kmsg;