Changeset 658 for trunk/hal/generic
- Timestamp:
- Oct 10, 2020, 3:48:50 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/generic/hal_uspace.h
r657 r658 30 30 // User space access API (implementation in hal_uspace.c) 31 31 // 32 // For sake of portability, user/kernel data transfers must use the following API. 33 // 32 34 // When moving data between user space and kernel space, the user address is always 33 // a virtual address, but the kernel address is an extended pointer. 34 // For sake of portability, user/kernel data transfers must use the following API. 35 // a virtual address, and the kernel address is an extended pointer. 36 // Therefore, each of these buffers can be located in any cluster. 37 // 38 // WARNING: these function must be executed by an user thread (i.e. PID > 0), 39 // to handle a possible page fault when accessing the user buffer. 35 40 ////////////////////////////////////////////////////////////////////////////////////////// 36 41 37 42 38 43 /***************************************************************************************** 39 * This function tranfers a data buffer in user space to a kernel buffer 40 * that can be located in any cluster. 44 * This function moves <size> bytes from a source buffer in user virtual space, 45 * defined by the <u_src_ptr> argument, to a destination kernel buffer, defined by the 46 * <k_dst_xp> argument. 41 47 ***************************************************************************************** 42 48 * @ k_dst_xp : extended pointer on kernel destination buffer. … … 49 55 50 56 /***************************************************************************************** 51 * This function tranfers a kernel buffer that can be located in any cluster 52 * to a data buffer in the user space. 57 * This function moves <size> bytes from a source kernel buffer, defined by the 58 * <k_src_xp> argument, to a destination buffer in user virtual space, defined by 59 * the <u_dst_ptr> argument. 53 60 ***************************************************************************************** 54 61 * @ u_dst_ptr : destination buffer address in user space. … … 87 94 88 95 /***************************************************************************************** 89 * This function computes the length of a stringin user space.96 * This function returns the length of a string located in user space. 90 97 ***************************************************************************************** 91 98 * @ string : string in user space.
Note: See TracChangeset
for help on using the changeset viewer.