⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 blocking.h

📁 newos is new operation system
💻 H
字号:
/* ** Copyright 2002, Thomas Kurschel. All rights reserved.** Distributed under the terms of the NewOS License.*/#ifndef __BLOCKING_H__#define __BLOCKING_H__static inline void xpt_set_device_overflow( xpt_device_info *device ){	device->lock_count += device->sim_overflow ^ 1;	device->sim_overflow = true;}static inline void xpt_set_bus_overflow( xpt_bus_info *bus ){	bus->lock_count += bus->sim_overflow ^ 1;	bus->sim_overflow = true;}static inline bool xpt_can_service_bus( xpt_bus_info *bus ){	return bus->lock_count > bus->sim_overflow + bus->blocked_by_sim;}static inline void xpt_clear_device_overflow( xpt_device_info *device ){	device->lock_count -= device->sim_overflow;	device->sim_overflow = false;}static inline void xpt_clear_bus_overflow( xpt_bus_info *bus ){	bus->lock_count -= bus->sim_overflow;	bus->sim_overflow = false;}int xpt_block_bus( xpt_bus_info *bus );int xpt_unblock_bus( xpt_bus_info *bus );int xpt_block_device( xpt_bus_info *bus, int target_id, int lun );int xpt_unblock_device( xpt_bus_info *bus, int target_id, int lun );int xpt_cont_send_bus( xpt_bus_info *bus );int xpt_cont_send_device( xpt_bus_info *bus, int target_id, int lun );#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -