| 1 | .\" Copyright (c) 2005-2008 David Carter <dcarter@arm4.org> and others. |
|---|
| 2 | .\" All rights reserved. This program and the accompanying materials |
|---|
| 3 | .\" are made available under the terms of the Eclipse Public License v1.0 |
|---|
| 4 | .\" which accompanies this distribution, and is available at |
|---|
| 5 | .\" http://www.eclipse.org/legal/epl-v10.html |
|---|
| 6 | .TH "arm_update_transaction" 3 "August 2008" "arm4.org" "ARM 4 Programmer's Manual" |
|---|
| 7 | .SH NAME |
|---|
| 8 | arm_update_transaction \- get transaction status |
|---|
| 9 | .SH SYNOPSIS |
|---|
| 10 | .B #include <arm4.h> |
|---|
| 11 | .sp |
|---|
| 12 | \fBarm_error_t |
|---|
| 13 | .br |
|---|
| 14 | arm_update_transaction( |
|---|
| 15 | .br |
|---|
| 16 | const arm_tran_start_handle_t \fItran_handle\fB, |
|---|
| 17 | .br |
|---|
| 18 | const arm_int32_t \fIflags\fB, |
|---|
| 19 | .br |
|---|
| 20 | const arm_buffer4_t *\fIbuffer4\fB);\fR |
|---|
| 21 | .SH DESCRIPTION |
|---|
| 22 | \fBarm_update_transaction()\fR signals that a transaction is still processing. |
|---|
| 23 | |
|---|
| 24 | \fBarm_update_transaction()\fR is useful as a heartbeat. It is also used to pass additional data about a |
|---|
| 25 | transaction. It can be called from any thread in the process that executed the |
|---|
| 26 | \fBarm_start_transaction()\fR. |
|---|
| 27 | |
|---|
| 28 | \fIbuffer4\fR is a pointer to the user data buffer, if any. If the pointer is null (\fBARM_BUF4_NONE\fR), |
|---|
| 29 | there is no buffer. The sub-buffer that might be used is |
|---|
| 30 | \fBarm_subbuffer_metric_values_t\fR. |
|---|
| 31 | |
|---|
| 32 | \fIflags\fR contains 32-bit flags. No values are currently defined. The field should be zero |
|---|
| 33 | (\fBARM_FLAG_NONE\fR). |
|---|
| 34 | |
|---|
| 35 | \fItran_handle\fR is a handle returned in an out parameter from an \fBarm_start_transaction()\fR call in the |
|---|
| 36 | same process. |
|---|
| 37 | |
|---|
| 38 | .SH "RETURN VALUE" |
|---|
| 39 | On success, the function returns \fBARM_SUCCESS\fR. A non-zero value indicates |
|---|
| 40 | an error. |
|---|
| 41 | .SH ERRORS |
|---|
| 42 | If the return code is negative, an error occurred. If the return code is not negative, an error may |
|---|
| 43 | or may not have occurred - the determination of what is an error and whether an error code is |
|---|
| 44 | returned is at the discretion of the ARM implementation. The application can test the return code |
|---|
| 45 | if it wants to provide its own error logging. |
|---|
| 46 | |
|---|
| 47 | The following errors are recognized by this implementation, but may not be portable to other implementations: |
|---|
| 48 | |
|---|
| 49 | .TP |
|---|
| 50 | .B ARM_FAILURE_TRANSACTION_INACTIVE |
|---|
| 51 | The \fItran_handle\fR refers to a transaction that is inactive. For example, an \fBarm_stop_transaction\fR |
|---|
| 52 | call may have been made on that transaction. |
|---|
| 53 | .TP |
|---|
| 54 | .B ARM_FAILURE_TRANSACTION_BLOCKED |
|---|
| 55 | The transaction has already been blocked by a previous call to \fBarm_block_transaction()\fR. |
|---|
| 56 | .TP |
|---|
| 57 | .B ARM_FAILURE_INTERNAL_ERROR |
|---|
| 58 | An internal error has occurred that prevented the operation from completing. Check your |
|---|
| 59 | system log for more details. |
|---|
| 60 | .SH "CONFORMING TO" |
|---|
| 61 | ARM Issue 4.0 C Language Bindings, Version 2 |
|---|
| 62 | .SH EXAMPLE |
|---|
| 63 | None. |
|---|
| 64 | .SH "SEE ALSO" |
|---|
| 65 | .BR arm_start_transaction (3), |
|---|
| 66 | .BR arm_stop_transaction (3) |
|---|