Accessing the driver from the linux kernel space, Mknod, Tsc_1x22_mafe_open – Maxim Integrated 73M1822/73M1922 Hardware Module for SMDK412 User Manual

Page 19: Tsc_1x22_mafe_close

Advertising
background image

UG_1x22_054

73M1822/73M1922 Hardware Module for SMDK412 User Guide

Rev. 1.1

19

4

Accessing the Driver from the Linux Kernel Space

When accessing the driver from the Linux Kernel space the user should use the exported API function
calls instead of the standard device file based user space functions.

4.1 mknod

The device does not require a character device file to be created via a mknod command to access the
driver functionality from the kernel space.

4.2 tsc_1x22_mafe_open

Description

Once the driver is installed (via insmod) the driver service can be accessed and initialized with a
tsc_1x22_mafe_open()

call.

Prototype

int tsc_1x22_mafe_open (void);

Parameters

Data Type

Name

Description

void

NA

NA


Return Values

Data Type

Description

int

0 = Success.
Not 0 = Failure.

4.3 tsc_1x22_mafe_close

Description

A file descriptor obtained with a tsc_1x22_mafe_open() command must be subsequently released
with a corresponding close.

Prototype

int tsc_1x22_mafe_close (void);

Parameters

Data Type

Name

Description

Void

NA

NA


Return Values

Data Type

Description

int

0 = Success.
Not 0 = Failure.

Advertising