flinklib
flinklib: flink C library for Linux
valid.c File Reference

Contains validation functions for flink. More...

#include "valid.h"
Include dependency graph for valid.c:

Go to the source code of this file.

Functions

int validate_flink_dev (flink_dev *dev)
 Checks if flink device was opened. More...
 
int validate_flink_subdev (flink_subdev *subdev)
 Checks if flink subdevice belongs to the device. More...
 

Detailed Description

Contains validation functions for flink.

Author
Martin Z├╝ger

Definition in file valid.c.

Function Documentation

int validate_flink_dev ( flink_dev dev)

Checks if flink device was opened.

Parameters
devflink device.
Returns
int: 1 if valid, 0 if not valid.

Definition at line 28 of file valid.c.

Here is the caller graph for this function:

int validate_flink_subdev ( flink_subdev subdev)

Checks if flink subdevice belongs to the device.

Parameters
devflink subdevice.
Returns
int: 1 if valid, 0 if not valid.

Definition at line 40 of file valid.c.

Here is the caller graph for this function: