Changeset 121 for trunk/hal/generic/hal_uspace.h
- Timestamp:
- Jul 3, 2017, 2:17:20 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/generic/hal_uspace.h
r95 r121 64 64 * This function tranfers a NUL terminated string from the user space to the kernel space. 65 65 * If the kernel uses physical addresses, it activates the MMU to access the user buffer. 66 * TODO : implement the max_size argument handling 66 67 ***************************************************************************************** 67 68 * @ u_dst : destination buffer address in user space. 68 69 * @ k_src : source address in kernel space. 70 * @ max_size : max number of characters to be copied. 69 71 ****************************************************************************************/ 70 extern void hal_strcpy_from_uspace( char * k_dst, 71 char * u_src ); 72 extern void hal_strcpy_from_uspace( char * k_dst, 73 char * u_src, 74 uint32_t max_size ); 72 75 73 76 /***************************************************************************************** 74 77 * This function tranfers a NUL terminated string from the kernel space to the user space. 75 78 * If the kernel uses physical addresses, it activates the MMU to access the user buffer. 79 * TODO : implement the max_size argument handling 76 80 ***************************************************************************************** 77 81 * @ u_dst : destination buffer address in user space. 78 82 * @ k_src : source address in kernel space. 83 * @ max_size : max number of characters to be copied. 79 84 ****************************************************************************************/ 80 extern void hal_strcpy_to_uspace( char * u_dst, 81 char * k_src ); 85 extern void hal_strcpy_to_uspace( char * u_dst, 86 char * k_src, 87 uint32_t max_size ); 82 88 83 89 /*****************************************************************************************
Note: See TracChangeset
for help on using the changeset viewer.