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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [posix/] [src/] [semaphoremp.c] - Blame information for rev 1771

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

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

powered by: WebSVN 2.1.0

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