Forum Discussion
Altera_Forum
Honored Contributor
16 years agoIoctl problem
Hi, I'm writing a device driver and I have problems with the ioctl function. When I run my user application associated with the driver in the terminal, "printks" that are inside my module funct...
Altera_Forum
Honored Contributor
16 years agoHi,
Maby I'm wrong but I'm not agree with you. It's true that 'fwrite' is a function of <stdio.h> library , but it is connected with my kernel function write. One of the parametres of fwrite is a file_pointer, this file_pointer has the same major as my driver, so when I call a fwrite in user space indirectly I call my function write in kernel. Things ara litle complex but more or less.This what I think, maby I'm wrong tell me please. Thanks