This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

GPMC读写问题



am335x通过gpmc总线与RAM连接,通信没有问题。但系统的读写函数

ssize_t (*read) (struct file *, char __user *, size_t, loff_t *);
ssize_t (*write) (struct file *, const char __user *, size_t, loff_t *);

使用时,参数太少。比如我要写地址:0x10地址开始的1K数据,无法将地址和读写数据个数同事传到底层驱动。

有没有好的方法解决这个问题