summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/sys/vnode.h
diff options
context:
space:
mode:
authorjwahlig <none@none>2007-12-05 05:02:08 -0800
committerjwahlig <none@none>2007-12-05 05:02:08 -0800
commitcfae96c24c7523c74c9efb583764b812b6b309c5 (patch)
tree654e8eb9b8a8b8961ce0805776722efa9f05309f /usr/src/uts/common/sys/vnode.h
parent1c2187e7a735b31a46941879f0bd124e0aa325a3 (diff)
downloadillumos-joyent-cfae96c24c7523c74c9efb583764b812b6b309c5.tar.gz
PSARC 2007/632 Caller context flags
6627507 Remove cross calls from v2 and v3 server
Diffstat (limited to 'usr/src/uts/common/sys/vnode.h')
-rw-r--r--usr/src/uts/common/sys/vnode.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/usr/src/uts/common/sys/vnode.h b/usr/src/uts/common/sys/vnode.h
index 3195fb4ebd..82d267700e 100644
--- a/usr/src/uts/common/sys/vnode.h
+++ b/usr/src/uts/common/sys/vnode.h
@@ -756,9 +756,18 @@ typedef struct caller_context {
pid_t cc_pid; /* Process ID of the caller */
int cc_sysid; /* System ID, used for remote calls */
u_longlong_t cc_caller_id; /* Identifier for (set of) caller(s) */
+ ulong_t cc_flags;
} caller_context_t;
/*
+ * Flags for caller context. The caller sets CC_DONTBLOCK if it does not
+ * want to block inside of a FEM monitor. The monitor will set CC_WOULDBLOCK
+ * and return EAGAIN if the operation would have blocked.
+ */
+#define CC_WOULDBLOCK 0x01
+#define CC_DONTBLOCK 0x02
+
+/*
* Structure tags for function prototypes, defined elsewhere.
*/
struct pathname;