Go to the source code of this file.
Data Structures | |
| struct | rt_spin_locked_list |
Defines | |
| #define | RT_SPIN_LOCKED_LIST(name) |
| #define | copy_from_user_or_kernel(err, user_info, dst, src, size) |
Definition in file most-common-rt.h.
| #define RT_SPIN_LOCKED_LIST | ( | name | ) |
Value:
struct rt_spin_locked_list name = { \ .list = LIST_HEAD_INIT(name.list), \ .lock = RTDM_LOCK_UNLOCKED \ }
| name | the name for the variable |
Definition at line 60 of file most-common-rt.h.
| #define copy_from_user_or_kernel | ( | err, | |||
| user_info, | |||||
| dst, | |||||
| src, | |||||
| size | ) |
Value:
do { \ if (user_info) { \ err = rtdm_copy_from_user(user_info, dst, src, size); \ } else { \ memcpy(dst, src, size); \ err = 0; \ } \ } while (0)
user_info is NULL, copies from kernel space to kernel space. If user_info is not NULL, copy from user space to kernel space.
src and dst must be valid pointers, i.e. checked with rtdm_read_user_ok if it's userspace.
| err | the variable where the return value is stored. 0 is success, a negative error value (-EFAULT) indicates an error | |
| user_info | the RTDM struct user_info value | |
| dst | the destination | |
| src | the source | |
| size | the number of bytes to copy |
Definition at line 81 of file most-common-rt.h.
Referenced by most_sync_nrt_setup_rx(), and most_sync_nrt_setup_tx().
1.5.0