Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
uio.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/poll.h>
#include <linux/device.h>
#include <linux/slab.h>
#include <linux/mm.h>
#include <linux/idr.h>
#include <linux/sched.h>
#include <linux/string.h>
#include <linux/kobject.h>
#include <linux/cdev.h>
#include <linux/uio_driver.h>

Go to the source code of this file.

Data Structures

struct  uio_device
 
struct  uio_map
 
struct  map_sysfs_entry
 
struct  uio_portio
 
struct  portio_sysfs_entry
 
struct  uio_listener
 

Macros

#define UIO_MAX_DEVICES   (1U << MINORBITS)
 
#define to_map(map)   container_of(map, struct uio_map, kobj)
 
#define to_portio(portio)   container_of(portio, struct uio_portio, kobj)
 

Functions

void uio_event_notify (struct uio_info *info)
 
 EXPORT_SYMBOL_GPL (uio_event_notify)
 
int __uio_register_device (struct module *owner, struct device *parent, struct uio_info *info)
 
 EXPORT_SYMBOL_GPL (__uio_register_device)
 
void uio_unregister_device (struct uio_info *info)
 
 EXPORT_SYMBOL_GPL (uio_unregister_device)
 

Macro Definition Documentation

#define to_map (   map)    container_of(map, struct uio_map, kobj)

Definition at line 60 of file uio.c.

#define to_portio (   portio)    container_of(portio, struct uio_portio, kobj)

Definition at line 143 of file uio.c.

#define UIO_MAX_DEVICES   (1U << MINORBITS)

Definition at line 29 of file uio.c.

Function Documentation

int __uio_register_device ( struct module owner,
struct device parent,
struct uio_info info 
)

uio_register_device - register a new userspace IO device : module that creates the new device : parent device : UIO device capabilities

returns zero on success or a negative error code.

Definition at line 801 of file uio.c.

EXPORT_SYMBOL_GPL ( uio_event_notify  )
EXPORT_SYMBOL_GPL ( __uio_register_device  )
EXPORT_SYMBOL_GPL ( uio_unregister_device  )
void uio_event_notify ( struct uio_info info)

uio_event_notify - trigger an interrupt event : UIO device capabilities

Definition at line 407 of file uio.c.

void uio_unregister_device ( struct uio_info info)

uio_unregister_device - unregister a industrial IO device : UIO device capabilities

Definition at line 870 of file uio.c.