-
RCS file: /usr1/CVS/rtems/cpukit/rtems/include/rtems/rtems/status.h,v
retrieving revision 1.11.6.1
diff -u -r1.11.6.1 status.h
|
|
|
65 | 65 | rtems_status_code _Status_Object_name_errors_to_status[] = { |
66 | 66 | RTEMS_SUCCESSFUL, /* OBJECTS_SUCCESSFUL */ |
67 | 67 | RTEMS_INVALID_NAME, /* OBJECTS_INVALID_NAME */ |
| 68 | RTEMS_INVALID_ADDRESS, /* OBJECTS_INVALID_ADDRESS */ |
68 | 69 | RTEMS_INVALID_NODE /* OBJECTS_INVALID_NODE */ |
69 | 70 | }; |
70 | 71 | #endif |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/clockget.c,v
retrieving revision 1.2.6.1
diff -u -r1.2.6.1 clockget.c
|
|
|
45 | 45 | ISR_Level level; |
46 | 46 | rtems_interval tmp; |
47 | 47 | |
| 48 | if ( !time_buffer ) |
| 49 | return RTEMS_INVALID_ADDRESS; |
| 50 | |
48 | 51 | switch ( option ) { |
49 | 52 | case RTEMS_CLOCK_GET_TOD: |
50 | 53 | if ( !_TOD_Is_set ) |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/clockset.c,v
retrieving revision 1.2.6.1
diff -u -r1.2.6.1 clockset.c
|
|
|
39 | 39 | { |
40 | 40 | rtems_interval seconds; |
41 | 41 | |
| 42 | if ( !time_buffer ) |
| 43 | return RTEMS_INVALID_ADDRESS; |
| 44 | |
42 | 45 | if ( _TOD_Validate( time_buffer ) ) { |
43 | 46 | seconds = _TOD_To_seconds( time_buffer ); |
44 | 47 | _Thread_Disable_dispatch(); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/dpmemcreate.c,v
retrieving revision 1.4.2.1
diff -u -r1.4.2.1 dpmemcreate.c
|
|
|
52 | 52 | if ( !rtems_is_name_valid( name) ) |
53 | 53 | return RTEMS_INVALID_NAME; |
54 | 54 | |
| 55 | if ( !id ) |
| 56 | return RTEMS_INVALID_ADDRESS; |
| 57 | |
55 | 58 | if ( !_Addresses_Is_aligned( internal_start ) || |
56 | 59 | !_Addresses_Is_aligned( external_start ) ) |
57 | 60 | return RTEMS_INVALID_ADDRESS; |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/dpmemexternal2internal.c,v
retrieving revision 1.2.6.1
diff -u -r1.2.6.1 dpmemexternal2internal.c
|
|
|
49 | 49 | Objects_Locations location; |
50 | 50 | unsigned32 ending; |
51 | 51 | |
| 52 | if ( !internal ) |
| 53 | return RTEMS_INVALID_ADDRESS; |
| 54 | |
52 | 55 | the_port = _Dual_ported_memory_Get( id, &location ); |
53 | 56 | switch ( location ) { |
54 | 57 | case OBJECTS_REMOTE: /* this error cannot be returned */ |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/dpmeminternal2external.c,v
retrieving revision 1.2.6.1
diff -u -r1.2.6.1 dpmeminternal2external.c
|
|
|
49 | 49 | Objects_Locations location; |
50 | 50 | unsigned32 ending; |
51 | 51 | |
| 52 | if ( !external ) |
| 53 | return RTEMS_INVALID_ADDRESS; |
| 54 | |
52 | 55 | the_port = _Dual_ported_memory_Get( id, &location ); |
53 | 56 | switch ( location ) { |
54 | 57 | case OBJECTS_REMOTE: /* this error cannot be returned */ |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/eventmp.c,v
retrieving revision 1.10.6.1
diff -u -r1.10.6.1 eventmp.c
|
|
|
40 | 40 | rtems_status_code _Event_MP_Send_request_packet ( |
41 | 41 | Event_MP_Remote_operations operation, |
42 | 42 | Objects_Id event_id, |
43 | | rtems_event_set event_in |
| 43 | rtems_event_set event_in |
44 | 44 | ) |
45 | 45 | { |
46 | 46 | Event_MP_Packet *the_packet; |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/eventreceive.c,v
retrieving revision 1.2.6.1
diff -u -r1.2.6.1 eventreceive.c
|
|
|
48 | 48 | { |
49 | 49 | RTEMS_API_Control *api; |
50 | 50 | |
| 51 | if ( !event_out ) |
| 52 | return RTEMS_INVALID_ADDRESS; |
| 53 | |
51 | 54 | api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; |
52 | 55 | |
53 | 56 | if ( _Event_sets_Is_empty( event_in ) ) { |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/eventsend.c,v
retrieving revision 1.2.6.1
diff -u -r1.2.6.1 eventsend.c
|
|
|
37 | 37 | */ |
38 | 38 | |
39 | 39 | rtems_status_code rtems_event_send( |
40 | | Objects_Id id, |
41 | | rtems_event_set event_in |
| 40 | Objects_Id id, |
| 41 | rtems_event_set event_in |
42 | 42 | ) |
43 | 43 | { |
44 | 44 | register Thread_Control *the_thread; |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/msgqbroadcast.c,v
retrieving revision 1.2.6.1
diff -u -r1.2.6.1 msgqbroadcast.c
|
|
|
60 | 60 | Objects_Locations location; |
61 | 61 | CORE_message_queue_Status core_status; |
62 | 62 | |
| 63 | if ( !buffer ) |
| 64 | return RTEMS_INVALID_ADDRESS; |
| 65 | |
| 66 | if ( !count ) |
| 67 | return RTEMS_INVALID_ADDRESS; |
| 68 | |
63 | 69 | the_message_queue = _Message_queue_Get( id, &location ); |
64 | 70 | switch ( location ) { |
65 | 71 | case OBJECTS_REMOTE: |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/msgqcreate.c,v
retrieving revision 1.5.2.1
diff -u -r1.5.2.1 msgqcreate.c
|
|
|
67 | 67 | if ( !rtems_is_name_valid( name ) ) |
68 | 68 | return RTEMS_INVALID_NAME; |
69 | 69 | |
| 70 | if ( !id ) |
| 71 | return RTEMS_INVALID_ADDRESS; |
| 72 | |
70 | 73 | #if defined(RTEMS_MULTIPROCESSING) |
71 | 74 | if ( (is_global = _Attributes_Is_global( attribute_set ) ) && |
72 | 75 | !_System_state_Is_multiprocessing ) |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/msgqflush.c,v
retrieving revision 1.2.6.1
diff -u -r1.2.6.1 msgqflush.c
|
|
|
56 | 56 | register Message_queue_Control *the_message_queue; |
57 | 57 | Objects_Locations location; |
58 | 58 | |
| 59 | if ( !count ) |
| 60 | return RTEMS_INVALID_ADDRESS; |
| 61 | |
59 | 62 | the_message_queue = _Message_queue_Get( id, &location ); |
60 | 63 | switch ( location ) { |
61 | 64 | case OBJECTS_REMOTE: |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/msgqgetnumberpending.c,v
retrieving revision 1.2.6.1
diff -u -r1.2.6.1 msgqgetnumberpending.c
|
|
|
54 | 54 | register Message_queue_Control *the_message_queue; |
55 | 55 | Objects_Locations location; |
56 | 56 | |
| 57 | if ( !count ) |
| 58 | return RTEMS_INVALID_ADDRESS; |
| 59 | |
57 | 60 | the_message_queue = _Message_queue_Get( id, &location ); |
58 | 61 | switch ( location ) { |
59 | 62 | case OBJECTS_REMOTE: |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/msgqreceive.c,v
retrieving revision 1.5.6.1
diff -u -r1.5.6.1 msgqreceive.c
|
|
|
61 | 61 | Objects_Locations location; |
62 | 62 | boolean wait; |
63 | 63 | |
| 64 | if ( !buffer ) |
| 65 | return RTEMS_INVALID_ADDRESS; |
| 66 | |
| 67 | if ( !size ) |
| 68 | return RTEMS_INVALID_ADDRESS; |
| 69 | |
64 | 70 | the_message_queue = _Message_queue_Get( id, &location ); |
65 | 71 | switch ( location ) { |
66 | 72 | |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/msgqsubmit.c,v
retrieving revision 1.7.4.1
diff -u -r1.7.4.1 msgqsubmit.c
|
|
|
69 | 69 | Objects_Locations location; |
70 | 70 | CORE_message_queue_Status msg_status; |
71 | 71 | |
| 72 | if ( !buffer ) |
| 73 | return RTEMS_INVALID_ADDRESS; |
| 74 | |
72 | 75 | the_message_queue = _Message_queue_Get( id, &location ); |
73 | 76 | switch ( location ) |
74 | 77 | { |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/partcreate.c,v
retrieving revision 1.4.2.1
diff -u -r1.4.2.1 partcreate.c
|
|
|
47 | 47 | void *starting_address, |
48 | 48 | unsigned32 length, |
49 | 49 | unsigned32 buffer_size, |
50 | | rtems_attribute attribute_set, |
| 50 | rtems_attribute attribute_set, |
51 | 51 | Objects_Id *id |
52 | 52 | ) |
53 | 53 | { |
… |
… |
|
55 | 55 | |
56 | 56 | if ( !rtems_is_name_valid( name ) ) |
57 | 57 | return RTEMS_INVALID_NAME; |
| 58 | |
| 59 | if ( !starting_address ) |
| 60 | return RTEMS_INVALID_ADDRESS; |
| 61 | |
| 62 | if ( !id ) |
| 63 | return RTEMS_INVALID_ADDRESS; |
58 | 64 | |
59 | 65 | if ( length == 0 || buffer_size == 0 || length < buffer_size || |
60 | 66 | !_Partition_Is_buffer_size_aligned( buffer_size ) ) |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/partdelete.c,v
retrieving revision 1.2.6.1
diff -u -r1.2.6.1 partdelete.c
|
|
|
34 | 34 | * |
35 | 35 | * Output parameters: |
36 | 36 | * RTEMS_SUCCESSFUL - if successful |
37 | | * error code - if unsuccessful |
| 37 | * error code - if unsuccessful |
38 | 38 | */ |
39 | 39 | |
40 | 40 | rtems_status_code rtems_partition_delete( |
… |
… |
|
42 | 42 | ) |
43 | 43 | { |
44 | 44 | register Partition_Control *the_partition; |
45 | | Objects_Locations location; |
| 45 | Objects_Locations location; |
46 | 46 | |
47 | 47 | the_partition = _Partition_Get( id, &location ); |
48 | 48 | switch ( location ) { |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/partgetbuffer.c,v
retrieving revision 1.2.6.1
diff -u -r1.2.6.1 partgetbuffer.c
|
|
|
46 | 46 | Objects_Locations location; |
47 | 47 | void *the_buffer; |
48 | 48 | |
| 49 | if ( !buffer ) |
| 50 | return RTEMS_INVALID_ADDRESS; |
| 51 | |
49 | 52 | the_partition = _Partition_Get( id, &location ); |
50 | 53 | switch ( location ) { |
51 | 54 | case OBJECTS_REMOTE: |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/ratemoncancel.c,v
retrieving revision 1.2.6.1
diff -u -r1.2.6.1 ratemoncancel.c
|
|
|
31 | 31 | * |
32 | 32 | * Output parameters: |
33 | 33 | * RTEMS_SUCCESSFUL - if successful and caller is not the owning thread |
34 | | * error code - if unsuccessful |
| 34 | * error code - if unsuccessful |
35 | 35 | */ |
36 | 36 | |
37 | 37 | rtems_status_code rtems_rate_monotonic_cancel( |
… |
… |
|
39 | 39 | ) |
40 | 40 | { |
41 | 41 | Rate_monotonic_Control *the_period; |
42 | | Objects_Locations location; |
| 42 | Objects_Locations location; |
43 | 43 | |
44 | 44 | the_period = _Rate_monotonic_Get( id, &location ); |
45 | 45 | switch ( location ) { |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/ratemoncreate.c,v
retrieving revision 1.4.2.1
diff -u -r1.4.2.1 ratemoncreate.c
|
|
|
32 | 32 | * id - pointer to rate monotonic id |
33 | 33 | * |
34 | 34 | * Output parameters: |
35 | | * id - rate monotonic id |
| 35 | * id - rate monotonic id |
36 | 36 | * RTEMS_SUCCESSFUL - if successful |
37 | | * error code - if unsuccessful |
| 37 | * error code - if unsuccessful |
38 | 38 | */ |
39 | 39 | |
40 | 40 | rtems_status_code rtems_rate_monotonic_create( |
… |
… |
|
46 | 46 | |
47 | 47 | if ( !rtems_is_name_valid( name ) ) |
48 | 48 | return RTEMS_INVALID_NAME; |
| 49 | |
| 50 | if ( !id ) |
| 51 | return RTEMS_INVALID_ADDRESS; |
49 | 52 | |
50 | 53 | _Thread_Disable_dispatch(); /* to prevent deletion */ |
51 | 54 | |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/ratemondelete.c,v
retrieving revision 1.2.6.1
diff -u -r1.2.6.1 ratemondelete.c
|
|
|
31 | 31 | * |
32 | 32 | * Output parameters: |
33 | 33 | * RTEMS_SUCCESSFUL - if successful |
34 | | * error code - if unsuccessful |
| 34 | * error code - if unsuccessful |
35 | 35 | */ |
36 | 36 | |
37 | 37 | rtems_status_code rtems_rate_monotonic_delete( |
… |
… |
|
39 | 39 | ) |
40 | 40 | { |
41 | 41 | Rate_monotonic_Control *the_period; |
42 | | Objects_Locations location; |
| 42 | Objects_Locations location; |
43 | 43 | |
44 | 44 | the_period = _Rate_monotonic_Get( id, &location ); |
45 | 45 | switch ( location ) { |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/ratemongetstatus.c,v
retrieving revision 1.2.6.1
diff -u -r1.2.6.1 ratemongetstatus.c
|
|
|
45 | 45 | Objects_Locations location; |
46 | 46 | Rate_monotonic_Control *the_period; |
47 | 47 | |
48 | | if ( status == NULL ) |
| 48 | if ( !status ) |
49 | 49 | return RTEMS_INVALID_ADDRESS; |
50 | 50 | |
51 | 51 | the_period = _Rate_monotonic_Get( id, &location ); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/ratemonident.c,v
retrieving revision 1.4.2.1
diff -u -r1.4.2.1 ratemonident.c
|
|
|
32 | 32 | * id - pointer to period id |
33 | 33 | * |
34 | 34 | * Output parameters: |
35 | | * *id - region id |
| 35 | * *id - region id |
36 | 36 | * RTEMS_SUCCESSFUL - if successful |
37 | | * error code - if unsuccessful |
| 37 | * error code - if unsuccessful |
38 | 38 | */ |
39 | 39 | |
40 | 40 | rtems_status_code rtems_rate_monotonic_ident( |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/ratemonperiod.c,v
retrieving revision 1.3.4.1
diff -u -r1.3.4.1 ratemonperiod.c
|
|
|
32 | 32 | * |
33 | 33 | * Output parameters: |
34 | 34 | * RTEMS_SUCCESSFUL - if successful |
35 | | * error code - if unsuccessful |
| 35 | * error code - if unsuccessful |
36 | 36 | */ |
37 | 37 | |
38 | 38 | rtems_status_code rtems_rate_monotonic_period( |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/regioncreate.c,v
retrieving revision 1.4.2.1
diff -u -r1.4.2.1 regioncreate.c
|
|
|
48 | 48 | void *starting_address, |
49 | 49 | unsigned32 length, |
50 | 50 | unsigned32 page_size, |
51 | | rtems_attribute attribute_set, |
| 51 | rtems_attribute attribute_set, |
52 | 52 | Objects_Id *id |
53 | 53 | ) |
54 | 54 | { |
… |
… |
|
56 | 56 | |
57 | 57 | if ( !rtems_is_name_valid( name ) ) |
58 | 58 | return RTEMS_INVALID_NAME; |
| 59 | |
| 60 | if ( !starting_address ) |
| 61 | return RTEMS_INVALID_ADDRESS; |
| 62 | |
| 63 | if ( !id ) |
| 64 | return RTEMS_INVALID_ADDRESS; |
59 | 65 | |
60 | 66 | if ( !_Addresses_Is_aligned( starting_address ) ) |
61 | 67 | return RTEMS_INVALID_ADDRESS; |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/regiondelete.c,v
retrieving revision 1.3.2.1
diff -u -r1.3.2.1 regiondelete.c
|
|
|
35 | 35 | * |
36 | 36 | * Output parameters: |
37 | 37 | * RTEMS_SUCCESSFUL - if successful |
38 | | * error code - if unsuccessful |
| 38 | * error code - if unsuccessful |
39 | 39 | */ |
40 | 40 | |
41 | 41 | rtems_status_code rtems_region_delete( |
… |
… |
|
43 | 43 | ) |
44 | 44 | { |
45 | 45 | register Region_Control *the_region; |
46 | | Objects_Locations location; |
| 46 | Objects_Locations location; |
47 | 47 | |
48 | 48 | _RTEMS_Lock_allocator(); |
49 | 49 | the_region = _Region_Get( id, &location ); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/regionextend.c,v
retrieving revision 1.3.2.1
diff -u -r1.3.2.1 regionextend.c
|
|
|
51 | 51 | Heap_Extend_status heap_status; |
52 | 52 | rtems_status_code status; |
53 | 53 | |
| 54 | if ( !starting_address ) |
| 55 | return RTEMS_INVALID_ADDRESS; |
| 56 | |
54 | 57 | status = RTEMS_SUCCESSFUL; |
55 | 58 | |
56 | 59 | _RTEMS_Lock_allocator(); /* to prevent deletion */ |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/regiongetsegment.c,v
retrieving revision 1.3.2.1
diff -u -r1.3.2.1 regiongetsegment.c
|
|
|
54 | 54 | Thread_Control *executing; |
55 | 55 | void *the_segment; |
56 | 56 | |
| 57 | if ( !segment ) |
| 58 | return RTEMS_INVALID_ADDRESS; |
| 59 | |
57 | 60 | *segment = NULL; |
58 | 61 | |
59 | 62 | if ( size == 0 ) |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/regiongetsegmentsize.c,v
retrieving revision 1.3.2.1
diff -u -r1.3.2.1 regiongetsegmentsize.c
|
|
|
49 | 49 | Objects_Locations location; |
50 | 50 | Thread_Control *executing; |
51 | 51 | |
| 52 | if ( !segment ) |
| 53 | return RTEMS_INVALID_ADDRESS; |
| 54 | |
| 55 | if ( !size ) |
| 56 | return RTEMS_INVALID_ADDRESS; |
| 57 | |
52 | 58 | _RTEMS_Lock_allocator(); |
53 | 59 | executing = _Thread_Executing; |
54 | 60 | the_region = _Region_Get( id, &location ); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/regionreturnsegment.c,v
retrieving revision 1.5.2.1
diff -u -r1.5.2.1 regionreturnsegment.c
|
|
|
42 | 42 | * |
43 | 43 | * Output parameters: |
44 | 44 | * RTEMS_SUCCESSFUL - if successful |
45 | | * error code - if unsuccessful |
| 45 | * error code - if unsuccessful |
46 | 46 | */ |
47 | 47 | |
48 | 48 | rtems_status_code rtems_region_return_segment( |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/semcreate.c,v
retrieving revision 1.10.2.1
diff -u -r1.10.2.1 semcreate.c
|
|
|
81 | 81 | if ( !rtems_is_name_valid( name ) ) |
82 | 82 | return RTEMS_INVALID_NAME; |
83 | 83 | |
| 84 | if ( !id ) |
| 85 | return RTEMS_INVALID_ADDRESS; |
| 86 | |
84 | 87 | #if defined(RTEMS_MULTIPROCESSING) |
85 | 88 | if ( _Attributes_Is_global( attribute_set ) ) { |
86 | 89 | |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/semdelete.c,v
retrieving revision 1.4.4.1
diff -u -r1.4.4.1 semdelete.c
|
|
|
58 | 58 | * |
59 | 59 | * Output parameters: |
60 | 60 | * RTEMS_SUCCESSFUL - if successful |
61 | | * error code - if unsuccessful |
| 61 | * error code - if unsuccessful |
62 | 62 | */ |
63 | 63 | |
64 | 64 | #if defined(RTEMS_MULTIPROCESSING) |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/semflush.c,v
retrieving revision 1.5.6.1
diff -u -r1.5.6.1 semflush.c
|
|
|
48 | 48 | * |
49 | 49 | * Output parameters: |
50 | 50 | * RTEMS_SUCCESSFUL - if successful |
51 | | * error code - if unsuccessful |
| 51 | * error code - if unsuccessful |
52 | 52 | */ |
53 | 53 | |
54 | 54 | #if defined(RTEMS_MULTIPROCESSING) |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/semident.c,v
retrieving revision 1.4.2.1
diff -u -r1.4.2.1 semident.c
|
|
|
58 | 58 | * id - pointer to semaphore id |
59 | 59 | * |
60 | 60 | * Output parameters: |
61 | | * *id - semaphore id |
| 61 | * *id - semaphore id |
62 | 62 | * RTEMS_SUCCESSFUL - if successful |
63 | | * error code - if unsuccessful |
| 63 | * error code - if unsuccessful |
64 | 64 | */ |
65 | 65 | |
66 | 66 | rtems_status_code rtems_semaphore_ident( |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/taskcreate.c,v
retrieving revision 1.4.2.2
diff -u -r1.4.2.2 taskcreate.c
|
|
|
75 | 75 | if ( !rtems_is_name_valid( name ) ) |
76 | 76 | return RTEMS_INVALID_NAME; |
77 | 77 | |
| 78 | if ( !id ) |
| 79 | return RTEMS_INVALID_ADDRESS; |
| 80 | |
78 | 81 | /* |
79 | 82 | * Core Thread Initialize insures we get the minimum amount of |
80 | 83 | * stack space. |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/taskgetnote.c,v
retrieving revision 1.2.6.1
diff -u -r1.2.6.1 taskgetnote.c
|
|
|
41 | 41 | * note - pointer to note |
42 | 42 | * |
43 | 43 | * Output parameters: |
44 | | * note - filled in if successful |
| 44 | * note - filled in if successful |
45 | 45 | * RTEMS_SUCCESSFUL - if successful |
46 | | * error code - if unsuccessful |
| 46 | * error code - if unsuccessful |
47 | 47 | */ |
48 | 48 | |
49 | 49 | rtems_status_code rtems_task_get_note( |
… |
… |
|
55 | 55 | register Thread_Control *the_thread; |
56 | 56 | Objects_Locations location; |
57 | 57 | RTEMS_API_Control *api; |
| 58 | |
| 59 | if ( !note ) |
| 60 | return RTEMS_INVALID_ADDRESS; |
58 | 61 | |
59 | 62 | /* |
60 | 63 | * NOTE: There is no check for < RTEMS_NOTEPAD_FIRST because that would |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/taskmode.c,v
retrieving revision 1.3.2.1
diff -u -r1.3.2.1 taskmode.c
|
|
|
58 | 58 | boolean needs_asr_dispatching = FALSE; |
59 | 59 | rtems_mode old_mode; |
60 | 60 | |
| 61 | if ( !previous_mode_set ) |
| 62 | return RTEMS_INVALID_ADDRESS; |
| 63 | |
61 | 64 | executing = _Thread_Executing; |
62 | 65 | api = executing->API_Extensions[ THREAD_API_RTEMS ]; |
63 | 66 | asr = &api->Signal; |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/taskrestart.c,v
retrieving revision 1.2.6.1
diff -u -r1.2.6.1 taskrestart.c
|
|
|
43 | 43 | * |
44 | 44 | * Output parameters: |
45 | 45 | * RTEMS_SUCCESSFUL - if successful |
46 | | * error code - if unsuccessful |
| 46 | * error code - if unsuccessful |
47 | 47 | */ |
48 | 48 | |
49 | 49 | rtems_status_code rtems_task_restart( |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/taskresume.c,v
retrieving revision 1.3.6.1
diff -u -r1.3.6.1 taskresume.c
|
|
|
40 | 40 | * |
41 | 41 | * Output parameters: |
42 | 42 | * RTEMS_SUCCESSFUL - if successful |
43 | | * error code - if unsuccessful |
| 43 | * error code - if unsuccessful |
44 | 44 | */ |
45 | 45 | |
46 | 46 | rtems_status_code rtems_task_resume( |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/tasksetnote.c,v
retrieving revision 1.2.6.1
diff -u -r1.2.6.1 tasksetnote.c
|
|
|
42 | 42 | * |
43 | 43 | * Output parameters: |
44 | 44 | * RTEMS_SUCCESSFUL - if successful |
45 | | * error code - if unsuccessful |
| 45 | * error code - if unsuccessful |
46 | 46 | */ |
47 | 47 | |
48 | 48 | rtems_status_code rtems_task_set_note( |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/tasksuspend.c,v
retrieving revision 1.3.6.1
diff -u -r1.3.6.1 tasksuspend.c
|
|
|
49 | 49 | ) |
50 | 50 | { |
51 | 51 | register Thread_Control *the_thread; |
52 | | Objects_Locations location; |
| 52 | Objects_Locations location; |
53 | 53 | |
54 | 54 | the_thread = _Thread_Get( id, &location ); |
55 | 55 | switch ( location ) { |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/taskvariableadd.c,v
retrieving revision 1.7.4.1
diff -u -r1.7.4.1 taskvariableadd.c
|
|
|
32 | 32 | Objects_Locations location; |
33 | 33 | rtems_task_variable_t *tvp, *new; |
34 | 34 | |
| 35 | if ( !ptr ) |
| 36 | return RTEMS_INVALID_ADDRESS; |
| 37 | |
35 | 38 | the_thread = _Thread_Get (tid, &location); |
36 | 39 | switch (location) { |
37 | 40 | case OBJECTS_REMOTE: |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/taskvariabledelete.c,v
retrieving revision 1.6.4.2
diff -u -r1.6.4.2 taskvariabledelete.c
|
|
|
31 | 31 | Objects_Locations location; |
32 | 32 | rtems_task_variable_t *tvp, *prev; |
33 | 33 | |
| 34 | if ( !ptr ) |
| 35 | return RTEMS_INVALID_ADDRESS; |
| 36 | |
34 | 37 | prev = NULL; |
35 | 38 | |
36 | 39 | the_thread = _Thread_Get (tid, &location); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/taskvariableget.c,v
retrieving revision 1.2.4.1
diff -u -r1.2.4.1 taskvariableget.c
|
|
|
32 | 32 | Objects_Locations location; |
33 | 33 | rtems_task_variable_t *tvp; |
34 | 34 | |
| 35 | if ( !ptr ) |
| 36 | return RTEMS_INVALID_ADDRESS; |
| 37 | |
| 38 | if ( !result ) |
| 39 | return RTEMS_INVALID_ADDRESS; |
| 40 | |
35 | 41 | the_thread = _Thread_Get (tid, &location); |
36 | 42 | switch (location) { |
37 | 43 | case OBJECTS_REMOTE: |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/taskwakewhen.c,v
retrieving revision 1.2.6.1
diff -u -r1.2.6.1 taskwakewhen.c
|
|
|
40 | 40 | * |
41 | 41 | * Output parameters: |
42 | 42 | * RTEMS_SUCCESSFUL - if successful |
43 | | * error code - if unsuccessful |
| 43 | * error code - if unsuccessful |
44 | 44 | */ |
45 | 45 | |
46 | 46 | rtems_status_code rtems_task_wake_when( |
47 | | rtems_time_of_day *time_buffer |
| 47 | rtems_time_of_day *time_buffer |
48 | 48 | ) |
49 | 49 | { |
50 | 50 | Watchdog_Interval seconds; |
51 | 51 | |
52 | 52 | if ( !_TOD_Is_set ) |
53 | 53 | return RTEMS_NOT_DEFINED; |
| 54 | |
| 55 | if ( !time_buffer ) |
| 56 | return RTEMS_INVALID_ADDRESS; |
54 | 57 | |
55 | 58 | time_buffer->ticks = 0; |
56 | 59 | |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/timercreate.c,v
retrieving revision 1.5.2.1
diff -u -r1.5.2.1 timercreate.c
|
|
|
47 | 47 | if ( !rtems_is_name_valid( name ) ) |
48 | 48 | return RTEMS_INVALID_NAME; |
49 | 49 | |
| 50 | if ( !id ) |
| 51 | return RTEMS_INVALID_ADDRESS; |
| 52 | |
50 | 53 | _Thread_Disable_dispatch(); /* to prevent deletion */ |
51 | 54 | |
52 | 55 | the_timer = _Timer_Allocate(); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/timerdelete.c,v
retrieving revision 1.3.2.1
diff -u -r1.3.2.1 timerdelete.c
|
|
|
39 | 39 | Objects_Id id |
40 | 40 | ) |
41 | 41 | { |
42 | | Timer_Control *the_timer; |
43 | | Objects_Locations location; |
| 42 | Timer_Control *the_timer; |
| 43 | Objects_Locations location; |
44 | 44 | |
45 | 45 | the_timer = _Timer_Get( id, &location ); |
46 | 46 | switch ( location ) { |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/timerfireafter.c,v
retrieving revision 1.3.2.1
diff -u -r1.3.2.1 timerfireafter.c
|
|
|
51 | 51 | if ( ticks == 0 ) |
52 | 52 | return RTEMS_INVALID_NUMBER; |
53 | 53 | |
| 54 | if ( !routine ) |
| 55 | return RTEMS_INVALID_ADDRESS; |
| 56 | |
54 | 57 | the_timer = _Timer_Get( id, &location ); |
55 | 58 | switch ( location ) { |
56 | 59 | case OBJECTS_REMOTE: /* should never return this */ |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/timerfirewhen.c,v
retrieving revision 1.3.2.1
diff -u -r1.3.2.1 timerfirewhen.c
|
|
|
55 | 55 | if ( !_TOD_Validate( wall_time ) ) |
56 | 56 | return RTEMS_INVALID_CLOCK; |
57 | 57 | |
| 58 | if ( !routine ) |
| 59 | return RTEMS_INVALID_ADDRESS; |
| 60 | |
58 | 61 | seconds = _TOD_To_seconds( wall_time ); |
59 | 62 | if ( seconds <= _TOD_Seconds_since_epoch ) |
60 | 63 | return RTEMS_INVALID_CLOCK; |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/timerserverfireafter.c,v
retrieving revision 1.3.2.1
diff -u -r1.3.2.1 timerserverfireafter.c
|
|
|
53 | 53 | if ( !_Timer_Server ) |
54 | 54 | return RTEMS_INCORRECT_STATE; |
55 | 55 | |
| 56 | if ( !routine ) |
| 57 | return RTEMS_INVALID_ADDRESS; |
| 58 | |
56 | 59 | if ( ticks == 0 ) |
57 | 60 | return RTEMS_INVALID_NUMBER; |
58 | 61 | |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/timerserverfirewhen.c,v
retrieving revision 1.3.2.1
diff -u -r1.3.2.1 timerserverfirewhen.c
|
|
|
57 | 57 | if ( !_TOD_Is_set ) |
58 | 58 | return RTEMS_NOT_DEFINED; |
59 | 59 | |
| 60 | if ( !routine ) |
| 61 | return RTEMS_INVALID_ADDRESS; |
| 62 | |
60 | 63 | if ( !_TOD_Validate( wall_time ) ) |
61 | 64 | return RTEMS_INVALID_CLOCK; |
62 | 65 | |
-
RCS file: /usr1/CVS/rtems/cpukit/score/include/rtems/score/object.h,v
retrieving revision 1.31.2.1
diff -u -r1.31.2.1 object.h
|
|
|
456 | 456 | typedef enum { |
457 | 457 | OBJECTS_SUCCESSFUL, |
458 | 458 | OBJECTS_INVALID_NAME, |
| 459 | OBJECTS_INVALID_ADDRESS, |
459 | 460 | OBJECTS_INVALID_NODE |
460 | 461 | } Objects_Name_to_id_errors; |
461 | 462 | |
-
RCS file: /usr1/CVS/rtems/cpukit/score/src/coretodvalidate.c,v
retrieving revision 1.2.6.1
diff -u -r1.2.6.1 coretodvalidate.c
|
|
|
40 | 40 | { |
41 | 41 | unsigned32 days_in_month; |
42 | 42 | |
43 | | if ((the_tod->ticks >= _TOD_Ticks_per_second) || |
| 43 | if ((!the_tod) || |
| 44 | (the_tod->ticks >= _TOD_Ticks_per_second) || |
44 | 45 | (the_tod->second >= TOD_SECONDS_PER_MINUTE) || |
45 | 46 | (the_tod->minute >= TOD_MINUTES_PER_HOUR) || |
46 | 47 | (the_tod->hour >= TOD_HOURS_PER_DAY) || |
-
RCS file: /usr1/CVS/rtems/cpukit/score/src/objectnametoid.c,v
retrieving revision 1.3.2.1
diff -u -r1.3.2.1 objectnametoid.c
|
|
|
56 | 56 | unsigned32 name_length; |
57 | 57 | Objects_Name_comparators compare_them; |
58 | 58 | |
| 59 | if ( !id ) |
| 60 | return OBJECTS_INVALID_ADDRESS; |
| 61 | |
59 | 62 | if ( name == 0 ) |
60 | 63 | return OBJECTS_INVALID_NAME; |
61 | 64 | |
-
RCS file: /usr1/CVS/rtems/doc/user/clock.t,v
retrieving revision 1.16
diff -u -r1.16 clock.t
|
|
|
262 | 262 | |
263 | 263 | @subheading DIRECTIVE STATUS CODES: |
264 | 264 | @code{@value{RPREFIX}SUCCESSFUL} - date and time set successfully@* |
| 265 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{time_buffer} is NULL@* |
265 | 266 | @code{@value{RPREFIX}INVALID_TIME_OF_DAY} - invalid time of day |
266 | 267 | |
267 | 268 | @subheading DESCRIPTION: |
… |
… |
|
320 | 321 | |
321 | 322 | @subheading DIRECTIVE STATUS CODES: |
322 | 323 | @code{@value{RPREFIX}SUCCESSFUL} - current time obtained successfully@* |
323 | | @code{@value{RPREFIX}NOT_DEFINED} - system date and time is not set |
| 324 | @code{@value{RPREFIX}NOT_DEFINED} - system date and time is not set@* |
| 325 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{time_buffer} is NULL |
324 | 326 | |
325 | 327 | @subheading DESCRIPTION: |
326 | 328 | |
… |
… |
|
414 | 416 | @end ifset |
415 | 417 | |
416 | 418 | @subheading DIRECTIVE STATUS CODES: |
417 | | @code{@value{RPREFIX}SUCCESSFUL} - current time obtained successfully |
| 419 | @code{@value{RPREFIX}SUCCESSFUL} - clock tick processed successfully |
418 | 420 | |
419 | 421 | @subheading DESCRIPTION: |
420 | 422 | |
-
RCS file: /usr1/CVS/rtems/doc/user/dpmem.t,v
retrieving revision 1.11
diff -u -r1.11 dpmem.t
|
|
|
139 | 139 | @code{@value{RPREFIX}SUCCESSFUL} - port created successfully@* |
140 | 140 | @code{@value{RPREFIX}INVALID_NAME} - invalid task name@* |
141 | 141 | @code{@value{RPREFIX}INVALID_ADDRESS} - address not on four byte boundary@* |
| 142 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{id} is NULL@* |
142 | 143 | @code{@value{RPREFIX}TOO_MANY} - too many DP memory areas created |
143 | 144 | |
144 | 145 | @subheading DESCRIPTION: |
… |
… |
|
195 | 196 | |
196 | 197 | @subheading DIRECTIVE STATUS CODES: |
197 | 198 | @code{@value{RPREFIX}SUCCESSFUL} - port identified successfully@* |
| 199 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{id} is NULL@* |
198 | 200 | @code{@value{RPREFIX}INVALID_NAME} - port name not found |
199 | 201 | |
200 | 202 | @subheading DESCRIPTION: |
… |
… |
|
291 | 293 | @end ifset |
292 | 294 | |
293 | 295 | @subheading DIRECTIVE STATUS CODES: |
294 | | @code{@value{RPREFIX}SUCCESSFUL} - always successful |
| 296 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{internal} is NULL@* |
| 297 | @code{@value{RPREFIX}SUCCESSFUL} - successful conversion |
295 | 298 | |
296 | 299 | @subheading DESCRIPTION: |
297 | 300 | |
… |
… |
|
341 | 344 | @end ifset |
342 | 345 | |
343 | 346 | @subheading DIRECTIVE STATUS CODES: |
344 | | @code{@value{RPREFIX}SUCCESSFUL} - always successful |
| 347 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{external} is NULL@* |
| 348 | @code{@value{RPREFIX}SUCCESSFUL} - successful conversion |
345 | 349 | |
346 | 350 | @subheading DESCRIPTION: |
347 | 351 | |
-
RCS file: /usr1/CVS/rtems/doc/user/event.t,v
retrieving revision 1.16
diff -u -r1.16 event.t
|
|
|
295 | 295 | @subheading DIRECTIVE STATUS CODES: |
296 | 296 | @code{@value{RPREFIX}SUCCESSFUL} - event received successfully@* |
297 | 297 | @code{@value{RPREFIX}UNSATISFIED} - input event not satisfied (@code{@value{RPREFIX}NO_WAIT})@* |
| 298 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{event_out} is NULL@* |
298 | 299 | @code{@value{RPREFIX}TIMEOUT} - timed out waiting for event |
299 | 300 | |
300 | 301 | @subheading DESCRIPTION: |
-
RCS file: /usr1/CVS/rtems/doc/user/msg.t,v
retrieving revision 1.16
diff -u -r1.16 msg.t
|
|
|
255 | 255 | @subheading DIRECTIVE STATUS CODES: |
256 | 256 | @code{@value{RPREFIX}SUCCESSFUL} - queue created successfully@* |
257 | 257 | @code{@value{RPREFIX}INVALID_NAME} - invalid task name@* |
| 258 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{id} is NULL@* |
258 | 259 | @code{@value{RPREFIX}INVALID_NUMBER} - invalid message count@* |
259 | 260 | @code{@value{RPREFIX}INVALID_SIZE} - invalid message size@* |
260 | 261 | @code{@value{RPREFIX}TOO_MANY} - too many queues created@* |
… |
… |
|
341 | 342 | |
342 | 343 | @subheading DIRECTIVE STATUS CODES: |
343 | 344 | @code{@value{RPREFIX}SUCCESSFUL} - queue identified successfully@* |
| 345 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{id} is NULL@* |
344 | 346 | @code{@value{RPREFIX}INVALID_NAME} - queue name not found@* |
345 | 347 | @code{@value{RPREFIX}INVALID_NODE} - invalid node id |
346 | 348 | |
… |
… |
|
473 | 475 | @code{@value{RPREFIX}SUCCESSFUL} - message sent successfully@* |
474 | 476 | @code{@value{RPREFIX}INVALID_ID} - invalid queue id@* |
475 | 477 | @code{@value{RPREFIX}INVALID_SIZE} - invalid message size@* |
| 478 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{buffer} is NULL@* |
476 | 479 | @code{@value{RPREFIX}UNSATISFIED} - out of message buffers@* |
477 | 480 | @code{@value{RPREFIX}TOO_MANY} - queue's limit has been reached |
478 | 481 | |
… |
… |
|
537 | 540 | @code{@value{RPREFIX}SUCCESSFUL} - message sent successfully@* |
538 | 541 | @code{@value{RPREFIX}INVALID_ID} - invalid queue id@* |
539 | 542 | @code{@value{RPREFIX}INVALID_SIZE} - invalid message size@* |
| 543 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{buffer} is NULL@* |
540 | 544 | @code{@value{RPREFIX}UNSATISFIED} - out of message buffers@* |
541 | 545 | @code{@value{RPREFIX}TOO_MANY} - queue's limit has been reached |
542 | 546 | |
… |
… |
|
603 | 607 | @subheading DIRECTIVE STATUS CODES: |
604 | 608 | @code{@value{RPREFIX}SUCCESSFUL} - message broadcasted successfully@* |
605 | 609 | @code{@value{RPREFIX}INVALID_ID} - invalid queue id@* |
| 610 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{buffer} is NULL@* |
| 611 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{count} is NULL@* |
606 | 612 | @code{@value{RPREFIX}INVALID_SIZE} - invalid message size |
607 | 613 | |
608 | 614 | @subheading DESCRIPTION: |
… |
… |
|
674 | 680 | @subheading DIRECTIVE STATUS CODES: |
675 | 681 | @code{@value{RPREFIX}SUCCESSFUL} - message received successfully@* |
676 | 682 | @code{@value{RPREFIX}INVALID_ID} - invalid queue id@* |
| 683 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{buffer} is NULL@* |
| 684 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{count} is NULL@* |
677 | 685 | @code{@value{RPREFIX}UNSATISFIED} - queue is empty@* |
678 | 686 | @code{@value{RPREFIX}TIMEOUT} - timed out waiting for message@* |
679 | 687 | @code{@value{RPREFIX}OBJECT_WAS_DELETED} - queue deleted while waiting |
… |
… |
|
759 | 767 | |
760 | 768 | @subheading DIRECTIVE STATUS CODES: |
761 | 769 | @code{@value{RPREFIX}SUCCESSFUL} - number of messages pending returned successfully@* |
| 770 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{count} is NULL@* |
762 | 771 | @code{@value{RPREFIX}INVALID_ID} - invalid queue id |
763 | 772 | |
764 | 773 | @subheading DESCRIPTION: |
… |
… |
|
807 | 816 | |
808 | 817 | @subheading DIRECTIVE STATUS CODES: |
809 | 818 | @code{@value{RPREFIX}SUCCESSFUL} - message queue flushed successfully@* |
| 819 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{count} is NULL@* |
810 | 820 | @code{@value{RPREFIX}INVALID_ID} - invalid queue id |
811 | 821 | |
812 | 822 | @subheading DESCRIPTION: |
-
RCS file: /usr1/CVS/rtems/doc/user/part.t,v
retrieving revision 1.13
diff -u -r1.13 part.t
|
|
|
173 | 173 | @code{@value{RPREFIX}INVALID_NAME} - invalid task name@* |
174 | 174 | @code{@value{RPREFIX}TOO_MANY} - too many partitions created@* |
175 | 175 | @code{@value{RPREFIX}INVALID_ADDRESS} - address not on four byte boundary@* |
| 176 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{starting_address} is NULL@* |
| 177 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{id} is NULL@* |
176 | 178 | @code{@value{RPREFIX}INVALID_SIZE} - length or buffer size is 0@* |
177 | 179 | @code{@value{RPREFIX}INVALID_SIZE} - length is less than the buffer size@* |
178 | 180 | @code{@value{RPREFIX}INVALID_SIZE} - buffer size not a multiple of 4@* |
… |
… |
|
257 | 259 | |
258 | 260 | @subheading DIRECTIVE STATUS CODES: |
259 | 261 | @code{@value{RPREFIX}SUCCESSFUL} - partition identified successfully@* |
| 262 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{id} is NULL@* |
260 | 263 | @code{@value{RPREFIX}INVALID_NAME} - partition name not found@* |
261 | 264 | @code{@value{RPREFIX}INVALID_NODE} - invalid node id |
262 | 265 | |
… |
… |
|
376 | 379 | |
377 | 380 | @subheading DIRECTIVE STATUS CODES: |
378 | 381 | @code{@value{RPREFIX}SUCCESSFUL} - buffer obtained successfully@* |
| 382 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{buffer} is NULL@* |
379 | 383 | @code{@value{RPREFIX}INVALID_ID} - invalid partition id@* |
380 | 384 | @code{@value{RPREFIX}UNSATISFIED} - all buffers are allocated |
381 | 385 | |
… |
… |
|
430 | 434 | |
431 | 435 | @subheading DIRECTIVE STATUS CODES: |
432 | 436 | @code{@value{RPREFIX}SUCCESSFUL} - buffer returned successfully@* |
| 437 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{buffer} is NULL@* |
433 | 438 | @code{@value{RPREFIX}INVALID_ID} - invalid partition id@* |
434 | 439 | @code{@value{RPREFIX}INVALID_ADDRESS} - buffer address not in partition |
435 | 440 | |
-
RCS file: /usr1/CVS/rtems/doc/user/region.t,v
retrieving revision 1.14
diff -u -r1.14 region.t
|
|
|
263 | 263 | |
264 | 264 | @code{@value{RPREFIX}SUCCESSFUL} - region created successfully@* |
265 | 265 | @code{@value{RPREFIX}INVALID_NAME} - invalid task name@* |
| 266 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{id} is NULL@* |
| 267 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{starting_address} is NULL@* |
266 | 268 | @code{@value{RPREFIX}INVALID_ADDRESS} - address not on four byte boundary@* |
267 | 269 | @code{@value{RPREFIX}TOO_MANY} - too many regions created@* |
268 | 270 | @code{@value{RPREFIX}INVALID_SIZE} - invalid page size |
… |
… |
|
339 | 341 | @subheading DIRECTIVE STATUS CODES: |
340 | 342 | |
341 | 343 | @code{@value{RPREFIX}SUCCESSFUL} - region identified successfully@* |
| 344 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{id} is NULL@* |
342 | 345 | @code{@value{RPREFIX}INVALID_NAME} - region name not found |
343 | 346 | |
344 | 347 | @subheading DESCRIPTION: |
… |
… |
|
439 | 442 | @subheading DIRECTIVE STATUS CODES: |
440 | 443 | |
441 | 444 | @code{@value{RPREFIX}SUCCESSFUL} - region extended successfully@* |
| 445 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{starting_address} is NULL@* |
442 | 446 | @code{@value{RPREFIX}INVALID_ID} - invalid region id@* |
443 | 447 | @code{@value{RPREFIX}INVALID_ADDRESS} - invalid address of area to add |
444 | 448 | |
… |
… |
|
494 | 498 | @subheading DIRECTIVE STATUS CODES: |
495 | 499 | |
496 | 500 | @code{@value{RPREFIX}SUCCESSFUL} - segment obtained successfully@* |
| 501 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{segment} is NULL@* |
497 | 502 | @code{@value{RPREFIX}INVALID_ID} - invalid region id@* |
498 | 503 | @code{@value{RPREFIX}INVALID_SIZE} - request is for zero bytes or exceeds |
499 | 504 | the size of maximum segment which is possible for this region@* |
… |
… |
|
581 | 586 | @subheading DIRECTIVE STATUS CODES: |
582 | 587 | |
583 | 588 | @code{@value{RPREFIX}SUCCESSFUL} - segment returned successfully@* |
| 589 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{segment} is NULL@* |
584 | 590 | @code{@value{RPREFIX}INVALID_ID} - invalid region id@* |
585 | 591 | @code{@value{RPREFIX}INVALID_ADDRESS} - segment address not in region |
586 | 592 | |
… |
… |
|
642 | 648 | @subheading DIRECTIVE STATUS CODES: |
643 | 649 | |
644 | 650 | @code{@value{RPREFIX}SUCCESSFUL} - segment obtained successfully@* |
| 651 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{segment} is NULL@* |
| 652 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{size} is NULL@* |
645 | 653 | @code{@value{RPREFIX}INVALID_ID} - invalid region id@* |
646 | 654 | @code{@value{RPREFIX}INVALID_ADDRESS} - segment address not in region |
647 | 655 | |
-
RCS file: /usr1/CVS/rtems/doc/user/sem.t,v
retrieving revision 1.19.4.1
diff -u -r1.19.4.1 sem.t
|
|
|
409 | 409 | @subheading DIRECTIVE STATUS CODES: |
410 | 410 | @code{@value{RPREFIX}SUCCESSFUL} - semaphore created successfully@* |
411 | 411 | @code{@value{RPREFIX}INVALID_NAME} - invalid task name@* |
| 412 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{id} is NULL@* |
412 | 413 | @code{@value{RPREFIX}TOO_MANY} - too many semaphores created@* |
413 | 414 | @code{@value{RPREFIX}NOT_DEFINED} - invalid attribute set@* |
414 | 415 | @code{@value{RPREFIX}INVALID_NUMBER} - invalid starting count for binary semaphore@* |
-
RCS file: /usr1/CVS/rtems/doc/user/task.t,v
retrieving revision 1.29.4.1
diff -u -r1.29.4.1 task.t
|
|
|
712 | 712 | |
713 | 713 | @subheading DIRECTIVE STATUS CODES: |
714 | 714 | @code{@value{RPREFIX}SUCCESSFUL} - task created successfully@* |
| 715 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{id} is NULL@* |
715 | 716 | @code{@value{RPREFIX}INVALID_NAME} - invalid task name@* |
716 | 717 | @code{@value{RPREFIX}INVALID_SIZE} - stack too small@* |
717 | 718 | @code{@value{RPREFIX}INVALID_PRIORITY} - invalid task priority@* |
… |
… |
|
819 | 820 | |
820 | 821 | @subheading DIRECTIVE STATUS CODES: |
821 | 822 | @code{@value{RPREFIX}SUCCESSFUL} - task identified successfully@* |
| 823 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{id} is NULL@* |
822 | 824 | @code{@value{RPREFIX}INVALID_NAME} - invalid task name@* |
823 | 825 | @code{@value{RPREFIX}INVALID_NODE} - invalid node id |
824 | 826 | |
… |
… |
|
1260 | 1262 | |
1261 | 1263 | @ifset is-Ada |
1262 | 1264 | @example |
1263 | | procedure Task_Delete ( |
| 1265 | procedure Task_Mode ( |
1264 | 1266 | Mode_Set : in RTEMS.Mode; |
1265 | 1267 | Mask : in RTEMS.Mode; |
1266 | 1268 | Previous_Mode_Set : in RTEMS.Mode; |
… |
… |
|
1270 | 1272 | @end ifset |
1271 | 1273 | |
1272 | 1274 | @subheading DIRECTIVE STATUS CODES: |
1273 | | @code{@value{RPREFIX}SUCCESSFUL} - task mode set successfully |
| 1275 | @code{@value{RPREFIX}SUCCESSFUL} - task mode set successfully@* |
| 1276 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{previous_mode_set} is NULL |
1274 | 1277 | |
1275 | 1278 | @subheading DESCRIPTION: |
1276 | 1279 | This directive manipulates the execution mode of the calling |
… |
… |
|
1431 | 1434 | |
1432 | 1435 | @subheading DIRECTIVE STATUS CODES: |
1433 | 1436 | @code{@value{RPREFIX}SUCCESSFUL} - note obtained successfully@* |
| 1437 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{note} is NULL@* |
1434 | 1438 | @code{@value{RPREFIX}INVALID_ID} - invalid task id@* |
1435 | 1439 | @code{@value{RPREFIX}INVALID_NUMBER} - invalid notepad location |
1436 | 1440 | |
… |
… |
|
1589 | 1593 | |
1590 | 1594 | @subheading DIRECTIVE STATUS CODES: |
1591 | 1595 | @code{@value{RPREFIX}SUCCESSFUL} - awakened at date/time successfully@* |
| 1596 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{time_buffer} is NULL@* |
1592 | 1597 | @code{@value{RPREFIX}INVALID_TIME_OF_DAY} - invalid time buffer@* |
1593 | 1598 | @code{@value{RPREFIX}NOT_DEFINED} - system date and time is not set |
1594 | 1599 | |
… |
… |
|
1618 | 1623 | @example |
1619 | 1624 | rtems_status_code rtems_task_variable_add( |
1620 | 1625 | rtems_id tid, |
1621 | | void **ptr, |
| 1626 | void **task_variable, |
1622 | 1627 | void (*dtor)(void *) |
1623 | 1628 | ); |
1624 | 1629 | @end example |
… |
… |
|
1641 | 1646 | |
1642 | 1647 | @subheading DIRECTIVE STATUS CODES: |
1643 | 1648 | @code{@value{RPREFIX}SUCCESSFUL} - per task variable added successfully@* |
| 1649 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{task_variable} is NULL@* |
1644 | 1650 | @code{@value{RPREFIX}INVALID_ID} - invalid task id@* |
1645 | 1651 | @code{@value{RPREFIX}NO_MEMORY} - invalid task id@* |
1646 | 1652 | @code{@value{RPREFIX}ILLEGAL_ON_REMOTE_OBJECT} - not supported on remote tasks@* |
… |
… |
|
1680 | 1686 | @example |
1681 | 1687 | rtems_status_code rtems_task_variable_get( |
1682 | 1688 | rtems_id tid, |
1683 | | void **ptr, |
1684 | | void **result |
| 1689 | void **task_variable, |
| 1690 | void **task_variable_value |
1685 | 1691 | ); |
1686 | 1692 | @end example |
1687 | 1693 | @end ifset |
… |
… |
|
1699 | 1705 | |
1700 | 1706 | @subheading DIRECTIVE STATUS CODES: |
1701 | 1707 | @code{@value{RPREFIX}SUCCESSFUL} - per task variable added successfully@* |
1702 | | @code{@value{RPREFIX}INVALID_ID} - invalid task id@* |
| 1708 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{task_variable} is NULL@* |
| 1709 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{task_variable_value} is NULL@* |
| 1710 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{task_variable} is not found@* |
1703 | 1711 | @code{@value{RPREFIX}NO_MEMORY} - invalid task id@* |
1704 | 1712 | @code{@value{RPREFIX}ILLEGAL_ON_REMOTE_OBJECT} - not supported on remote tasks@* |
1705 | 1713 | |
… |
… |
|
1711 | 1719 | |
1712 | 1720 | @subheading NOTES: |
1713 | 1721 | |
1714 | | If you change memory which @code{result} points to, remember to declare that |
1715 | | memory as volatile, so that the compiler will optimize it correctly. In this |
1716 | | case both the pointer @code{result} and data referenced by @code{result} |
| 1722 | If you change memory which @code{task_variable_value} points to, |
| 1723 | remember to declare that memory as volatile, so that the compiler |
| 1724 | will optimize it correctly. In this case both the pointer |
| 1725 | @code{task_variable_value} and data referenced by @code{task_variable_value} |
1717 | 1726 | should be considered volatile. |
1718 | 1727 | |
1719 | 1728 | @page |
… |
… |
|
1731 | 1740 | @example |
1732 | 1741 | rtems_status_code rtems_task_variable_delete( |
1733 | 1742 | rtems_id tid, |
1734 | | void **ptr |
| 1743 | void **task_variable |
1735 | 1744 | ); |
1736 | 1745 | @end example |
1737 | 1746 | @end ifset |
… |
… |
|
1750 | 1759 | @code{@value{RPREFIX}SUCCESSFUL} - per task variable added successfully@* |
1751 | 1760 | @code{@value{RPREFIX}INVALID_ID} - invalid task id@* |
1752 | 1761 | @code{@value{RPREFIX}NO_MEMORY} - invalid task id@* |
| 1762 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{task_variable} is NULL@* |
1753 | 1763 | @code{@value{RPREFIX}ILLEGAL_ON_REMOTE_OBJECT} - not supported on remote tasks@* |
1754 | 1764 | |
1755 | 1765 | @subheading DESCRIPTION: |
-
RCS file: /usr1/CVS/rtems/doc/user/timer.t,v
retrieving revision 1.16
diff -u -r1.16 timer.t
|
|
|
233 | 233 | |
234 | 234 | @subheading DIRECTIVE STATUS CODES: |
235 | 235 | @code{@value{RPREFIX}SUCCESSFUL} - timer created successfully@* |
| 236 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{id} is NULL@* |
236 | 237 | @code{@value{RPREFIX}INVALID_NAME} - invalid timer name@* |
237 | 238 | @code{@value{RPREFIX}TOO_MANY} - too many timers created |
238 | 239 | |
… |
… |
|
281 | 282 | |
282 | 283 | @subheading DIRECTIVE STATUS CODES: |
283 | 284 | @code{@value{RPREFIX}SUCCESSFUL} - timer identified successfully@* |
| 285 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{id} is NULL@* |
284 | 286 | @code{@value{RPREFIX}INVALID_NAME} - timer name not found |
285 | 287 | |
286 | 288 | @subheading DESCRIPTION: |
… |
… |
|
422 | 424 | |
423 | 425 | @subheading DIRECTIVE STATUS CODES: |
424 | 426 | @code{@value{RPREFIX}SUCCESSFUL} - timer initiated successfully@* |
| 427 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{routine} is NULL@* |
425 | 428 | @code{@value{RPREFIX}INVALID_ID} - invalid timer id@* |
426 | 429 | @code{@value{RPREFIX}INVALID_NUMBER} - invalid interval |
427 | 430 | |
… |
… |
|
475 | 478 | |
476 | 479 | @subheading DIRECTIVE STATUS CODES: |
477 | 480 | @code{@value{RPREFIX}SUCCESSFUL} - timer initiated successfully@* |
| 481 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{routine} is NULL@* |
| 482 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{wall_time} is NULL@* |
478 | 483 | @code{@value{RPREFIX}INVALID_ID} - invalid timer id@* |
479 | 484 | @code{@value{RPREFIX}NOT_DEFINED} - system date and time is not set@* |
480 | 485 | @code{@value{RPREFIX}INVALID_CLOCK} - invalid time of day |
… |
… |
|
583 | 588 | |
584 | 589 | @subheading DIRECTIVE STATUS CODES: |
585 | 590 | @code{@value{RPREFIX}SUCCESSFUL} - timer initiated successfully@* |
| 591 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{routine} is NULL@* |
586 | 592 | @code{@value{RPREFIX}INVALID_ID} - invalid timer id@* |
587 | 593 | @code{@value{RPREFIX}INVALID_NUMBER} - invalid interval@* |
588 | 594 | @code{@value{RPREFIX}INCORRECT_STATE} - Timer Server not initiated |
… |
… |
|
639 | 645 | |
640 | 646 | @subheading DIRECTIVE STATUS CODES: |
641 | 647 | @code{@value{RPREFIX}SUCCESSFUL} - timer initiated successfully@* |
| 648 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{routine} is NULL@* |
| 649 | @code{@value{RPREFIX}INVALID_ADDRESS} - @code{wall_time} is NULL@* |
642 | 650 | @code{@value{RPREFIX}INVALID_ID} - invalid timer id@* |
643 | 651 | @code{@value{RPREFIX}NOT_DEFINED} - system date and time is not set@* |
644 | 652 | @code{@value{RPREFIX}INVALID_CLOCK} - invalid time of day@* |