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

📄 guid.h

📁 Linux内核源代码 为压缩文件 是<<Linux内核>>一书中的源代码
💻 H
字号:
#ifndef _IEEE1394_GUID_H#define _IEEE1394_GUID_H/* * General information: Finding out which GUID belongs to which node is done by * sending packets and therefore waiting for the answers.  Wherever it is * mentioned that a node is inaccessible this could just as well mean that we * just don't know yet (usually, bus reset handlers can't rely on GUIDs being * associated with current nodes). */struct guid_entry;typedef struct guid_entry *hpsb_guid_t;/* * Returns a guid handle (which has its reference count incremented) or NULL if * there is the GUID in question is not known of.  Getting a valid handle does * not mean that the node with this GUID is currently accessible (might not be * plugged in or powered down). */hpsb_guid_t hpsb_guid_get_handle(u64 guid);/* * If the handle refers to a local host, this function will return the pointer * to the hpsb_host structure.  It will return NULL otherwise.  Once you have * established it is a local host, you can use that knowledge from then on (the * GUID won't wander to an external node). * * Note that the local GUID currently isn't collected, so this will always * return NULL. */struct hpsb_host *hpsb_guid_localhost(hpsb_guid_t handle);/* * This will fill in the given, pre-initialised hpsb_packet with the current * information from the GUID handle (host, node ID, generation number).  It will * return false if the node owning the GUID is not accessible (and not modify the  * hpsb_packet) and return true otherwise. * * Note that packet sending may still fail in hpsb_send_packet if a bus reset * happens while you are trying to set up the packet (due to obsolete generation * number).  It will at least reliably fail so that you don't accidentally and * unknowingly send your packet to the wrong node. */int hpsb_guid_fill_packet(hpsb_guid_t handle, struct hpsb_packet *pkt);void init_ieee1394_guid(void);#endif /* _IEEE1394_GUID_H */

⌨️ 快捷键说明

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