base/include/rtai_tasklets.h File Reference


Detailed Description

Interface of the mini LXRT RTAI tasklets module.

Author:
Paolo Mantegazza
Note:
Copyright © 1999-2003 Paolo Mantegazza <mantegazza@aero.polimi.it>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

Definition in file rtai_tasklets.h.#include <rtai_types.h>
#include <rtai_sched.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/mman.h>
#include <stdarg.h>
#include <rtai_usi.h>
#include <rtai_lxrt.h>

Include dependency graph for rtai_tasklets.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Data Structures

struct  rt_tasklet_struct

Defines

#define TSKIDX   1
#define INIT   0
#define DELETE   1
#define TASK_INSERT   2
#define TASK_REMOVE   3
#define USE_FPU   4
#define TIMER_INSERT   5
#define TIMER_REMOVE   6
#define SET_TASKLETS_PRI   7
#define SET_FIR_TIM   8
#define SET_PER   9
#define SET_HDL   10
#define SET_DAT   11
#define EXEC_TASKLET   12
#define WAIT_IS_HARD   13
#define SET_TSK_PRI   14
#define REG_TASK   15
#define TASKLET_STACK_SIZE   8196
#define rt_init_timer   rt_init_tasklet
#define rt_delete_timer   rt_delete_tasklet
#define rt_set_timer_handler   rt_set_tasklet_handler
#define rt_set_timer_data   rt_set_tasklet_data
#define rt_timer_use_fpu   rt_tasklet_use_fpu

Functions

int support_tasklet (void *tasklet)
rt_tasklet_structrt_init_tasklet (void)
 Init, in kernel space, a tasklet structure to be used in user space.
void rt_delete_tasklet (struct rt_tasklet_struct *tasklet)
 Delete, in kernel space, a tasklet structure to be used in user space.
int rt_insert_timer (struct rt_tasklet_struct *timer, int priority, RTIME firing_time, RTIME period, void(*handler)(unsigned long), unsigned long data, int pid)
 Insert a timer in the list of timers to be processed.
void rt_remove_timer (struct rt_tasklet_struct *timer)
 Remove a timer in the list of timers to be processed.
void rt_set_timer_priority (struct rt_tasklet_struct *timer, int priority)
 Change the priority of an existing timer.
void rt_set_timer_firing_time (struct rt_tasklet_struct *timer, RTIME firing_time)
 Change the firing time of a timer.
void rt_set_timer_period (struct rt_tasklet_struct *timer, RTIME period)
 Change the period of a timer.
int rt_set_tasklet_handler (struct rt_tasklet_struct *tasklet, void(*handler)(unsigned long))
void rt_set_tasklet_data (struct rt_tasklet_struct *tasklet, unsigned long data)
RT_TASKrt_tasklet_use_fpu (struct rt_tasklet_struct *tasklet, int use_fpu)
int rt_insert_tasklet (struct rt_tasklet_struct *tasklet, int priority, void(*handler)(unsigned long), unsigned long data, unsigned long id, int pid)
 Insert a tasklet in the list of tasklets to be processed.
void rt_set_tasklet_priority (struct rt_tasklet_struct *tasklet, int priority)
void rt_remove_tasklet (struct rt_tasklet_struct *tasklet)
 Remove a tasklet in the list of tasklets to be processed.
int rt_exec_tasklet (struct rt_tasklet_struct *tasklet)
 Exec a tasklet.


Generated on Thu Nov 20 11:54:02 2008 for RTAI API by doxygen 1.3.8