Changeset 428 for trunk/kernel/kern/chdev.h
- Timestamp:
- Jan 29, 2018, 6:08:07 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/chdev.h
r407 r428 28 28 #include <hal_types.h> 29 29 #include <xlist.h> 30 #include <metafs.h>31 30 #include <remote_spinlock.h> 32 31 #include <dev_iob.h> … … 35 34 #include <dev_pic.h> 36 35 #include <dev_fbf.h> 36 #include <dev_txt.h> 37 37 38 38 /****************************************************************************************** … … 115 115 * One kernel thread, in charge of handling the commands registered in the waiting queue 116 116 * of client threads is associated to each chdev descriptor (not for ICU, PIC, IOB). 117 * For each device type ***, the specific extension s aredefined in the "dev_***.h" file.117 * For each device type ***, the specific extension is defined in the "dev_***.h" file. 118 118 *****************************************************************************************/ 119 119 … … 136 136 uint32_t irq_id; /*! associated IRQ index in local ICU */ 137 137 138 metafs_t node; /*! Metafs node associated with this device */139 140 138 remote_spinlock_t wait_lock; /*! lock protecting exclusive access to queue */ 141 139 xlist_entry_t wait_root; /*! root of waiting threads queue */ … … 148 146 pic_extend_t pic; /*! PIC specific extension */ 149 147 fbf_extend_t fbf; /*! FBF specific extension */ 148 txt_extend_t txt; /*! TXT specific extension */ 150 149 } 151 150 ext; … … 239 238 240 239 /****************************************************************************************** 240 * This function returns an extended pointer on the chdev associated to a pseudo file 241 * descriptor (type INODE_TYPE_DEV) identified by the <file_xp> argument. 242 * It can be called by a thread running in any cluster. 243 * It enters kernel panic if the inode has not the expected type. 244 ****************************************************************************************** 245 * @ file_xp : extended pointer on the pseudo file descriptor. 246 * @ return an extended pointer on chdev. 247 *****************************************************************************************/ 248 xptr_t chdev_from_file( xptr_t file_xp ); 249 250 /****************************************************************************************** 241 251 * This function displays the local copy of the external chdevs directory. 242 252 * (global variable replicated in all clusters) … … 244 254 void chdev_dir_display(); 245 255 246 247 248 256 #endif /* _CHDEV_H_ */
Note: See TracChangeset
for help on using the changeset viewer.