My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions | Variables
sw_modinit.c File Reference
#include <sw_types.h>
#include <cpu_data.h>
#include <sw_modinit.h>
#include <sw_syscall.h>
#include <uart.h>

Functions

void sw_device_register (struct sw_file_operations *sw_dev)
 This function is called by each module for registration. More...
 
void sw_device_unregister (struct sw_file_operations *sw_dev)
 This function is called by each module to unregister them. More...
 
void sw_open (const char *dev_name)
 open system call for devices More...
 
void sw_close (const char *dev_name)
 close system call for devices More...
 
void sw_read (void)
 read system call for devices More...
 
void sw_write ()
 write system call for devices More...
 
void sw_ioctl (void)
 ioctl system call for devices More...
 

Variables

struct sw_devices_head sw_dev_head
 

Function Documentation

void sw_close ( const char *  dev_name)

close system call for devices

void sw_device_register ( struct sw_file_operations sw_dev)

This function is called by each module for registration.

Parameters
sw_devFile operations structure of the device
void sw_device_unregister ( struct sw_file_operations sw_dev)

This function is called by each module to unregister them.

Parameters
sw_devFile operations structure of the device
void sw_ioctl ( void  )

ioctl system call for devices

void sw_open ( const char *  dev_name)

open system call for devices

void sw_read ( void  )

read system call for devices

Read system call for devices.

void sw_write ( )

write system call for devices

Variable Documentation

struct sw_devices_head sw_dev_head