base/include/rtai_registry.h File Reference


Detailed Description

Author:
Paolo Mantegazza
Note:
Copyright © 1999 Paolo Mantegazza <mantegazza@aero.polimi.it>, extensions for user space modules are jointly copyrighted (2000) with: Pierre Cloutier <pcloutier@poseidoncontrols.com>, Steve Papacharalambous <stevep@zentropix.com>.
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_registry.h.#include <rtai_nam2num.h>

Include dependency graph for rtai_registry.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_registry_entry

Defines

#define MAX_SLOTS   CONFIG_RTAI_SCHED_LXRT_NUMSLOTS
#define IS_TASK   0
#define IS_SEM   1
#define IS_RWL   2
#define IS_SPL   3
#define IS_MBX   4
#define IS_PRX   5
#define IS_BIT   6
#define IS_TBX   7
#define IS_HPCK   8
#define exist(name)   rt_get_adr(nam2num(name))

Functions

unsigned long is_process_registered (struct task_struct *tsk)
int rt_register (unsigned long nam, void *adr, int typ, struct task_struct *tsk)
int rt_drg_on_name (unsigned long name)
int rt_drg_on_name_cnt (unsigned long name)
int rt_drg_on_adr (void *adr)
int rt_drg_on_adr_cnt (void *adr)
unsigned long rt_get_name (void *adr)
 Get an object name by its address.
void * rt_get_adr (unsigned long name)
 Get an object address by its name.
void * rt_get_adr_cnt (unsigned long name)
int rt_get_type (unsigned long name)


Define Documentation

#define exist name   )     rt_get_adr(nam2num(name))
 

Definition at line 91 of file rtai_registry.h.

#define IS_BIT   6
 

Definition at line 52 of file rtai_registry.h.

Referenced by rt_bits_init_u(), and rt_named_bits_init().

#define IS_HPCK   8
 

Definition at line 54 of file rtai_registry.h.

Referenced by rt_named_halloc_typed().

#define IS_MBX   4
 

Definition at line 50 of file rtai_registry.h.

Referenced by _rt_named_msgq_init(), _rt_typed_named_mbx_init(), handle_lxrt_request(), krtai_objects_release(), and linux_process_termination().

#define IS_PRX   5
 

Definition at line 51 of file rtai_registry.h.

Referenced by krtai_objects_release(), and linux_process_termination().

#define IS_RWL   2
 

Definition at line 48 of file rtai_registry.h.

Referenced by _rt_named_rwl_init(), krtai_objects_release(), and linux_process_termination().

#define IS_SEM   1
 

Definition at line 47 of file rtai_registry.h.

Referenced by _rt_typed_named_sem_init(), handle_lxrt_request(), krtai_objects_release(), and linux_process_termination().

#define IS_SPL   3
 

Definition at line 49 of file rtai_registry.h.

Referenced by _rt_named_spl_init(), krtai_objects_release(), and linux_process_termination().

#define IS_TASK   0
 

Definition at line 46 of file rtai_registry.h.

Referenced by __task_init(), krtai_objects_release(), linux_process_termination(), rt_named_task_init(), and rt_named_task_init_cpuid().

#define IS_TBX   7
 

Definition at line 53 of file rtai_registry.h.

#define MAX_SLOTS   CONFIG_RTAI_SCHED_LXRT_NUMSLOTS
 

Definition at line 44 of file rtai_registry.h.

Referenced by rt_registry_alloc().


Function Documentation

unsigned long is_process_registered struct task_struct *  tsk  ) 
 

Definition at line 1349 of file api.c.

References hash_find_adr(), lxrt_list, max_slots, and TSKEXT0.

Referenced by linux_process_termination().

Here is the call graph for this function:

int rt_drg_on_adr_cnt void *  adr  ) 
 

Definition at line 1687 of file api.c.

References drg_on_adr_cnt().

Referenced by rt_named_mbx_delete(), rt_named_msgq_delete(), rt_named_rwl_delete(), rt_named_sem_delete(), and rt_named_spl_delete().

Here is the call graph for this function:

int rt_drg_on_name_cnt unsigned long  name  ) 
 

Definition at line 1682 of file api.c.

References drg_on_name_cnt().

Referenced by __rtai_shm_exit(), _rt_shm_free(), linux_process_termination(), and rt_named_hfree_typed().

Here is the call graph for this function:

void* rt_get_adr_cnt unsigned long  name  ) 
 

Definition at line 1692 of file api.c.

References get_adr_cnt().

Referenced by _rt_named_msgq_init(), _rt_named_rwl_init(), _rt_named_spl_init(), _rt_shm_alloc(), _rt_typed_named_mbx_init(), _rt_typed_named_sem_init(), rt_named_halloc_typed(), and rtai_shm_vm_open().

Here is the call graph for this function:

int rt_get_type unsigned long  name  ) 
 

Definition at line 1677 of file api.c.

References get_type().

Referenced by rt_set_heap(), rt_shm_alloc_usp(), rt_shm_size(), rtai_shm_f_ioctl(), rtai_shm_f_mmap(), and rtai_shm_vm_close().

Here is the call graph for this function:


Generated on Thu Nov 20 11:53:46 2008 for RTAI API by doxygen 1.3.8