X hits on this document

Powerpoint document

Using a JTAG in Linux Driver Debugging - page 16 / 48

116 views

0 shares

0 downloads

0 comments

16 / 48

04/16/2008 - Copyright © 2008 The PTR Group Inc.

CELF-2008-SVC-16

Initializing the file_operations

C99 tagged initialization of the structures allows you to initialize the fields by name

No worry about the structure layout (which may change between kernel revisions)

Un-initialized function entries in the structure shown below will be initialized to NULL

struct file_operations fops = {

.read    = my_read,

.write   = my_write,

.ioctl   = my_ioctl,

.open    = my_open,

.release = my_release

};

Document info
Document views116
Page views116
Page last viewedWed Dec 07 00:33:47 UTC 2016
Pages48
Paragraphs607
Words3505

Comments