Changeset 9d12059 in mainline
- Timestamp:
- 2011-01-09T12:16:00Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0c70f7e, a676574
- Parents:
- bc5ffeb
- Location:
- uspace
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/async_sess.c
rbc5ffeb r9d12059 150 150 * @param sess Session structure provided by caller, will be filled in. 151 151 * @param phone Phone connected to the desired server task. 152 */ 153 void async_session_create(async_sess_t *sess, int phone) 152 * @param arg1 Value to pass as first argument upon creating a new 153 * connection. Typical use is to identify a resource within 154 * the server that the caller wants to access (port ID, 155 * interface ID, device ID, etc.). 156 */ 157 void async_session_create(async_sess_t *sess, int phone, sysarg_t arg1) 154 158 { 155 159 sess->sess_phone = phone; 156 sess->connect_arg1 = 0;160 sess->connect_arg1 = arg1; 157 161 list_initialize(&sess->conn_head); 158 162 … … 160 164 fibril_mutex_lock(&async_sess_mutex); 161 165 list_append(&sess->sess_link, &session_list_head); 162 fibril_mutex_unlock(&async_sess_mutex);163 }164 165 void async_session_set_connect_args(async_sess_t *sess, sysarg_t arg1)166 {167 fibril_mutex_lock(&async_sess_mutex);168 sess->connect_arg1 = arg1;169 166 fibril_mutex_unlock(&async_sess_mutex); 170 167 } -
uspace/lib/c/include/async_sess.h
rbc5ffeb r9d12059 46 46 47 47 extern void _async_sess_init(void); 48 extern void async_session_create(async_sess_t *, int); 49 extern void async_session_set_connect_args(async_sess_t *, sysarg_t); 48 extern void async_session_create(async_sess_t *, int, sysarg_t); 50 49 extern void async_session_destroy(async_sess_t *); 51 50 extern int async_exchange_begin(async_sess_t *); -
uspace/srv/vfs/vfs_register.c
rbc5ffeb r9d12059 188 188 189 189 phone = IPC_GET_ARG5(call); 190 async_session_create(&fs_info->session, phone );190 async_session_create(&fs_info->session, phone, 0); 191 191 ipc_answer_0(callid, EOK); 192 192
Note:
See TracChangeset
for help on using the changeset viewer.