X hits on this document

Powerpoint document

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

170 views

0 shares

0 downloads

0 comments

12 / 48

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

CELF-2008-SVC-12

Giving Your Driver Something to do

Character device driver exports services in file_operations structure

There are 26 supported operations in the 2.6 kernel

Up from 17 in the 2.4.kernel

You only supply those calls that make sense for your device

You can explicitly return error codes for unsupported functions or have the system return the default ENOTSUPP error

Typically, the file_operations structure is statically initialized

Using C99 tagged initializer format

Document info
Document views170
Page views170
Page last viewedSat Jan 21 22:21:32 UTC 2017
Pages48
Paragraphs607
Words3505

Comments