Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
umc-dev.c File Reference
#include <linux/kernel.h>
#include <linux/export.h>
#include <linux/slab.h>
#include <linux/uwb/umc.h>

Go to the source code of this file.

Functions

struct umc_devumc_device_create (struct device *parent, int n)
 
 EXPORT_SYMBOL_GPL (umc_device_create)
 
int umc_device_register (struct umc_dev *umc)
 
 EXPORT_SYMBOL_GPL (umc_device_register)
 
void umc_device_unregister (struct umc_dev *umc)
 
 EXPORT_SYMBOL_GPL (umc_device_unregister)
 

Function Documentation

EXPORT_SYMBOL_GPL ( umc_device_create  )
EXPORT_SYMBOL_GPL ( umc_device_register  )
EXPORT_SYMBOL_GPL ( umc_device_unregister  )
struct umc_dev* umc_device_create ( struct device parent,
int  n 
)
read

umc_device_create - allocate a child UMC device : parent of the new UMC device.
: index of the new device.

The new UMC device will have a bus ID of the parent with '-n' appended.

Definition at line 28 of file umc-dev.c.

int umc_device_register ( struct umc_dev umc)

umc_device_register - register a UMC device : pointer to the UMC device

The memory resource for the UMC device is acquired and the device registered with the system.

Definition at line 52 of file umc-dev.c.

void umc_device_unregister ( struct umc_dev umc)

umc_device_unregister - unregister a UMC device : pointer to the UMC device

First we unregister the device, make sure the driver can do it's resource release thing and then we try to release any left over resources. We take a ref to the device, to make sure it doesn't disappear under our feet.

Definition at line 84 of file umc-dev.c.