ioctlを使用してカーネルモジュールと通信したい。1つはカーネルモジュール用、もう1つはユーザーモード用の2つのcプログラムを作成しました。カーネルモジュールのコンパイル中にこのエラーが発生します:
エラー:初期化子で指定された不明なフィールド'ioctl'
この行で:
struct file_operations Fops = {
.read = device_read,
.write = device_write,
.ioctl = device_ioctl, ------> at this point error is occuring.
.open = device_open,
.release = device_release,
};
なぜこれが起こっているのか考えてみてください。
ありがとう