Changeset 407 for trunk/hal/generic/hal_uspace.h
- Timestamp:
- Nov 7, 2017, 3:08:12 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/generic/hal_uspace.h
r299 r407 62 62 63 63 /***************************************************************************************** 64 * This function tranfers a NUL terminated string from the user space to the kernel space. 64 * This function tranfers a string from the user space to the kernel space. 65 * The transfer stops after the first encountered NUL character, and no more than 66 * <max_size> characters are actually copied to target buffer. 65 67 * If the kernel uses physical addresses, it activates the MMU to access the user buffer. 66 * TODO : implement the max_size argument handling, and error handling67 68 ***************************************************************************************** 68 69 * @ u_dst : destination buffer address in user space. … … 70 71 * @ max_size : max number of characters to be copied. 71 72 ****************************************************************************************/ 72 extern error_thal_strcpy_from_uspace( char * k_dst,73 74 73 extern void hal_strcpy_from_uspace( char * k_dst, 74 char * u_src, 75 uint32_t max_size ); 75 76 76 77 /***************************************************************************************** 77 * This function tranfers a NUL terminated string from the kernel space to the user space. 78 * This function tranfers a string from the kernel space to the user space. 79 * The transfer stops after the first encountered NUL character, and no more than 80 * <max_size> characters are actually copied to target buffer. 78 81 * If the kernel uses physical addresses, it activates the MMU to access the user buffer. 79 * TODO : implement the max_size argument handling, and error handling80 82 ***************************************************************************************** 81 83 * @ u_dst : destination buffer address in user space. … … 83 85 * @ max_size : max number of characters to be copied. 84 86 ****************************************************************************************/ 85 extern error_thal_strcpy_to_uspace( char * u_dst,86 87 87 extern void hal_strcpy_to_uspace( char * u_dst, 88 char * k_src, 89 uint32_t max_size ); 88 90 89 91 /*****************************************************************************************
Note: See TracChangeset
for help on using the changeset viewer.