Static struct file operations ioctl




















Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 4 years, 2 months ago. Active 4 years, 2 months ago. Viewed 1k times. I've got an error while writing a char device module, using Ioctl command. I can not fix this. Please, help me fix this. My thanks to all of you. Vadim Kotov 7, 8 8 gold badges 45 45 silver badges 61 61 bronze badges. Huy Nguyen Huy Nguyen 61 7 7 bronze badges. The last argument must be unsigned long arg and not arg[b]. If your last argument is designed to be a pointer to some sort of array, you need to cast it within your function accordingly.

I've fixed formatting to make the code readable — Thomas Fritsch. Hi BronislavElizavetin thank you for your answer. I'm sorry about the last argument. Improve this answer. Kees Cook Kees Cook Is there any updated source of reference, for module development, that lists all such changes with kernel code.

It is a name for a member of struct. Your question is meaningless to me. It the same as what is the difference between int a and 6? Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science.

Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Related 8. Hot Network Questions. Question feed. Stack Overflow works best with JavaScript enabled.



0コメント

  • 1000 / 1000