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 dependency graph for rtai_tasklets.h:

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

Go to the source code of this file.

Data Structures

struct  rt_usp_tasklet_struct
struct  support_tasklet_s
struct  rt_tasklets_struct

Defines

#define TASKLETS_IDX   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 GET_TMR_TIM   16
#define GET_TMR_OVRN   17
#define PTIMER_CREATE   18
#define PTIMER_SETTIME   19
#define PTIMER_OVERRUN   20
#define PTIMER_GETTIME   21
#define PTIMER_DELETE   22
#define POSIX_TIMERS   128
#define TASKLET_STACK_SIZE   8196
#define rt_tasklet_struct   rt_usp_tasklet_struct
#define POLLS_PER_SEC   100
#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
#define rt_create_timers   rt_create_tasklets
#define rt_destroy_timers   rt_destroy_tasklets
#define rt_get_timer   rt_get_tasklet
#define rt_gvb_timer   rt_gvb_tasklet

Functions

static int support_tasklet (struct support_tasklet_s *args)
static void rt_delete_tasklet (struct rt_usp_tasklet_struct *tasklet)
static struct rt_usp_tasklet_structrt_init_tasklet (void)
 Init, in kernel space, a tasklet structure to be used in user space.
static int rt_insert_timer (struct rt_usp_tasklet_struct *timer, int priority, RTIME firing_time, RTIME period, void(*handler)(unsigned long), unsigned long data, int pid)
static void rt_remove_timer (struct rt_usp_tasklet_struct *timer)
static void rt_set_timer_priority (struct rt_usp_tasklet_struct *timer, int priority)
static void rt_set_timer_firing_time (struct rt_usp_tasklet_struct *timer, RTIME firing_time)
static void rt_set_timer_period (struct rt_usp_tasklet_struct *timer, RTIME period)
static void rt_get_timer_times (struct rt_usp_tasklet_struct *timer, RTIME timer_times[])
static RTIME rt_get_timer_overrun (struct rt_usp_tasklet_struct *timer)
static int rt_set_tasklet_handler (struct rt_usp_tasklet_struct *tasklet, void(*handler)(unsigned long))
static void rt_set_tasklet_data (struct rt_usp_tasklet_struct *tasklet, unsigned long data)
static RT_TASKrt_tasklet_use_fpu (struct rt_usp_tasklet_struct *tasklet, int use_fpu)
static int rt_insert_tasklet (struct rt_usp_tasklet_struct *tasklet, int priority, void(*handler)(unsigned long), unsigned long data, unsigned long id, int pid)
static void rt_set_tasklet_priority (struct rt_usp_tasklet_struct *tasklet, int priority)
static void rt_remove_tasklet (struct rt_usp_tasklet_struct *tasklet)
static int rt_exec_tasklet (struct rt_usp_tasklet_struct *tasklet)
static struct rt_tasklets_structrt_create_tasklets (int ntasklets)
static void rt_destroy_tasklets (struct rt_tasklets_struct *tasklets)
static struct rt_usp_tasklet_structrt_get_tasklet (struct rt_tasklets_struct *tasklets)
static int rt_gvb_tasklet (struct rt_usp_tasklet_struct *tasklet, struct rt_tasklets_struct *tasklets)


Define Documentation

#define POLLS_PER_SEC   100

Referenced by rt_init_tasklet(), and rt_wait_tasklet_is_hard().


Generated on Tue Feb 2 17:47:24 2010 for RTAI API by  doxygen 1.4.7