📄 swkocmsg.h
字号:
/***************************************************************************
*
* Copyright (c) 1993 READY SYSTEMS CORPORATION.
*
* All rights reserved. READY SYSTEMS' source code is an unpublished
* work and the use of a copyright notice does not imply otherwise.
* This source code contains confidential, trade secret material of
* READY SYSTEMS. Any attempt or participation in deciphering, decoding,
* reverse engineering or in any way altering the source code is
* strictly prohibited, unless the prior written consent of
* READY SYSTEMS is obtained.
*
*
* Module Name: %M%
*
* Identification: %Z% %I% %M%
*
* Date: %G% %U%
*
****************************************************************************
*/
/* $Id: swkocmsg.h,v 1.4 1993/07/01 20:07:18 robert Exp $ */
/*
* Copyrighted as an unpublished work.
* (c) Copyright Lachman Technology, Inc. 1993
* All rights reserved.
*
* RESTRICTED RIGHTS:
*
* These programs are supplied under a license. They may be used,
* disclosed, and/or copied only as permitted under such license
* agreement. Any copy must contain the above copyright notice and
* this restricted rights notice. Use, copying, and/or disclosure of
* the programs is strictly prohibited unless otherwise provided in
* the license agreement.
*/
#ifndef _SWKOCMSG_H
#define _SWKOCMSG_H
#ifdef __cplusplus
extern "C" {
#endif
#define SWK_OCUNLOCKED ((char *)1)
extern char *swk_oclock;
struct swk_ocwait {
int oc_addr; /* address to sleep/wakeup on */
char *oc_mbox; /* mbox to pend for wakeup */
struct swk_ocwait *oc_next; /* next msg in oc wait queue */
};
struct swk_oc_open_args {
queue_t *q;
dev_t *devp;
int flags;
int sflag;
cred_t *credp;
};
struct swk_oc_close_args {
queue_t *q;
int flags;
cred_t *credp;
};
struct swk_oc_oopen_args {
queue_t *q;
dev_t dev;
int flags;
int sflag;
};
struct swk_oc_oclose_args {
queue_t *q;
};
struct swk_oc_request {
struct swk_message *msg;
int oc_flag;
int svr_type;
union {
struct swk_oc_open_args open;
struct swk_oc_close_args close;
struct swk_oc_oopen_args oopen;
struct swk_oc_oclose_args oclose;
} u;
};
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -