を持っていません。Ubuntuのカーネル(VMwareは)チュートリアル以下の知るには、/usr/include/linux/fs.hファイル内の構造体file_operations構造
:Ubuntuの中で実行した後http://derekmolloy.ie/writing-a-linux-kernel-module-part-2-a-character-device/
を
sudo apt-get update
apt-cache search linux-headers-$(uname -r)
sudo apt-get install linux-headers-4.8.0-36-generic
cd /usr/src/linux-headers-4.8.0-36
なぜubuntuカーネル(Vmware)に/usr/include/linux/fs.hファイルにfile_operations構造がないのですか?
struct file_operations {
struct module *owner;
loff_t (*llseek) (struct file *, loff_t, int);
ssize_t (*read) (struct file *, char *, size_t, loff_t *);
ssize_t (*write) (struct file *, const char *, size_t, loff_t *);
.
.
.
};
ありがとうございます従業員私は、私が従おうとしているチュートリアルのリンクで質問を編集しました。 – Ruben