RTDM read/write callback with parameters

Jan Kiszka jan.kiszka at siemens.com
Tue Sep 22 17:18:18 CEST 2020


On 21.09.20 15:49, Martin Haag via Xenomai wrote:
> Dear list members,
> 
> I am porting a Linux PCI character device driver to Xenomai 2.6.5.
> 
> I can not find a RTDM expression for the "parameters" argument of the
> struct file_operations read callback.
> 
> struct file_operations:
> ssize_t aim_read(struct file* file, char __user *parameters, size_t
> parameterSize, loff_t* offset);
> 
> struct rtdm_operations:
> ssize_t aim_rtdm_read(struct rtdm_dev_context *context, rtdm_user_info_t
> *user_info, void *buf, size_t nbyte)
> 

buf would map to parameter in the kernel interface, and there is no 
equivalent of offset.

HTH,
Jan

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux



More information about the Xenomai mailing list