Changeset 5cd136ab in mainline for uspace/lib/libc/generic/devman.c
- Timestamp:
- 2010-04-02T13:37:58Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9a66bc2
- Parents:
- 57937dd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/devman.c
r57937dd r5cd136ab 28 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 29 */ 30 31 /** @addtogroup libc 32 * @{ 33 */ 34 /** @file 35 */ 30 36 31 37 #include <string.h> … … 193 199 } 194 200 } 201 202 int devman_device_connect(device_handle_t handle, unsigned int flags) 203 { 204 int phone; 205 206 if (flags & IPC_FLAG_BLOCKING) { 207 phone = ipc_connect_me_to_blocking(PHONE_NS, SERVICE_DEVMAN, 208 DEVMAN_CONNECT_TO_DEVICE, handle); 209 } else { 210 phone = ipc_connect_me_to(PHONE_NS, SERVICE_DEVMAN, 211 DEVMAN_CONNECT_TO_DEVICE, handle); 212 } 213 214 return phone; 215 } 216 217 int devman_parent_device_connect(device_handle_t handle, unsigned int flags) 218 { 219 int phone; 220 221 if (flags & IPC_FLAG_BLOCKING) { 222 phone = ipc_connect_me_to_blocking(PHONE_NS, SERVICE_DEVMAN, 223 DEVMAN_CONNECT_TO_PARENTS_DEVICE, handle); 224 } else { 225 phone = ipc_connect_me_to(PHONE_NS, SERVICE_DEVMAN, 226 DEVMAN_CONNECT_TO_PARENTS_DEVICE, handle); 227 } 228 229 return phone; 230 } 231 232 /** @} 233 */
Note:
See TracChangeset
for help on using the changeset viewer.