Changeset 9d12059 in mainline for uspace/lib/c/generic/async_sess.c
- Timestamp:
- 2011-01-09T12:16:00Z (12 years ago)
- Branches:
- lfn, master, serial
- Children:
- 0c70f7e, a676574
- Parents:
- bc5ffeb
- File:
-
- 1 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 }
Note: See TracChangeset
for help on using the changeset viewer.