OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [posix/] [src/] [semaphoremp.c] - Blame information for rev 738

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*
2
 *  $Id: semaphoremp.c,v 1.2 2001-09-27 11:59:17 chris Exp $
3
 */
4
 
5
#include <stdarg.h>
6
 
7
#include <errno.h>
8
#include <fcntl.h>
9
#include <pthread.h>
10
#include <semaphore.h>
11
#include <limits.h>
12
 
13
#include <rtems/system.h>
14
#include <rtems/score/object.h>
15
#include <rtems/posix/semaphore.h>
16
#include <rtems/posix/time.h>
17
#include <rtems/posix/seterr.h>
18
 
19
#if defined(RTEMS_MULTIPROCESSING)
20
/*
21
 *  _POSIX_Semaphore_MP_Send_process_packet
22
 *
23
 *  DESCRIPTION:
24
 *
25
 *  This routine performs a remote procedure call so that a
26
 *  process operation can be performed on another node.
27
 */
28
 
29
void _POSIX_Semaphore_MP_Send_process_packet(
30
  POSIX_Semaphore_MP_Remote_operations  operation,
31
  Objects_Id                            semaphore_id,
32
  Objects_Name                          name,
33
  Objects_Id                            proxy_id
34
)
35
{
36
  POSIX_MP_NOT_IMPLEMENTED();
37
}
38
 
39
/*
40
 *  _POSIX_Semaphore_MP_Send_request_packet
41
 *
42
 *  DESCRIPTION:
43
 *
44
 *  This routine performs a remote procedure call so that a
45
 *  directive operation can be initiated on another node.
46
 */
47
 
48
int _POSIX_Semaphore_MP_Send_request_packet(
49
  POSIX_Semaphore_MP_Remote_operations  operation,
50
  Objects_Id                            semaphore_id,
51
  boolean                               wait,  /* XXX options */
52
  Watchdog_Interval                     timeout
53
)
54
{
55
  POSIX_MP_NOT_IMPLEMENTED();
56
  return 0;
57
}
58
 
59
/*
60
 *  _POSIX_Semaphore_MP_Send_response_packet
61
 *
62
 *  DESCRIPTION:
63
 *
64
 *  This routine performs a remote procedure call so that a
65
 *  directive can be performed on another node.
66
 */
67
 
68
void _POSIX_Semaphore_MP_Send_response_packet(
69
  POSIX_Semaphore_MP_Remote_operations  operation,
70
  Objects_Id                        semaphore_id,
71
  Thread_Control                   *the_thread
72
)
73
{
74
  POSIX_MP_NOT_IMPLEMENTED();
75
}
76
 
77
/*
78
 *
79
 *  _POSIX_Semaphore_MP_Process_packet
80
 *
81
 *  DESCRIPTION:
82
 *
83
 *  This routine performs the actions specific to this package for
84
 *  the request from another node.
85
 */
86
 
87
void _POSIX_Semaphore_MP_Process_packet(
88
  MP_packet_Prefix *the_packet_prefix
89
)
90
{
91
  POSIX_MP_NOT_IMPLEMENTED();
92
}
93
 
94
/*
95
 *  _POSIX_Semaphore_MP_Send_object_was_deleted
96
 *
97
 *  DESCRIPTION:
98
 *
99
 *  This routine is invoked indirectly by the thread queue
100
 *  when a proxy has been removed from the thread queue and
101
 *  the remote node must be informed of this.
102
 */
103
 
104
void _POSIX_Semaphore_MP_Send_object_was_deleted(
105
  Thread_Control *the_proxy
106
)
107
{
108
  POSIX_MP_NOT_IMPLEMENTED();
109
}
110
 
111
/*
112
 *  _POSIX_Semaphore_MP_Send_extract_proxy
113
 *
114
 *  DESCRIPTION:
115
 *
116
 *  This routine is invoked when a task is deleted and it
117
 *  has a proxy which must be removed from a thread queue and
118
 *  the remote node must be informed of this.
119
 */
120
 
121
void _POSIX_Semaphore_MP_Send_extract_proxy(
122
  Thread_Control *the_thread
123
)
124
{
125
  POSIX_MP_NOT_IMPLEMENTED();
126
}
127
 
128
/*
129
 *  _POSIX_Semaphore_MP_Get_packet
130
 *
131
 *  DESCRIPTION:
132
 *
133
 *  This function is used to obtain a semaphore mp packet.
134
 */
135
 
136
POSIX_Semaphore_MP_Packet *_POSIX_Semaphore_MP_Get_packet( void )
137
{
138
  POSIX_MP_NOT_IMPLEMENTED();
139
  return NULL;
140
}
141
 
142
#endif /* endif RTEMS_MULTIPROCESSING */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.