Rev 1288 | Rev 1702 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1288 | Rev 1293 | ||
---|---|---|---|
Line 52... | Line 52... | ||
52 | * @param uspace_src Source userspace address. |
52 | * @param uspace_src Source userspace address. |
53 | * @param size Size of the data to be copied. |
53 | * @param size Size of the data to be copied. |
54 | * |
54 | * |
55 | * @return 0 on success or error code from @ref errno.h. |
55 | * @return 0 on success or error code from @ref errno.h. |
56 | */ |
56 | */ |
57 | int copy_from_uspace(void *dst, void *uspace_src, size_t size) |
57 | int copy_from_uspace(void *dst, const void *uspace_src, size_t size) |
58 | { |
58 | { |
59 | ipl_t ipl; |
59 | ipl_t ipl; |
60 | int rc; |
60 | int rc; |
61 | 61 | ||
62 | ASSERT(THREAD); |
62 | ASSERT(THREAD); |
Line 93... | Line 93... | ||
93 | * @param uspace_src Source kernel address. |
93 | * @param uspace_src Source kernel address. |
94 | * @param size Size of the data to be copied. |
94 | * @param size Size of the data to be copied. |
95 | * |
95 | * |
96 | * @return 0 on success or error code from @ref errno.h. |
96 | * @return 0 on success or error code from @ref errno.h. |
97 | */ |
97 | */ |
98 | int copy_to_uspace(void *uspace_dst, void *src, size_t size) |
98 | int copy_to_uspace(void *uspace_dst, const void *src, size_t size) |
99 | { |
99 | { |
100 | ipl_t ipl; |
100 | ipl_t ipl; |
101 | int rc; |
101 | int rc; |
102 | 102 | ||
103 | ASSERT(THREAD); |
103 | ASSERT(THREAD); |