inventory.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  2.  * Miguel de Icaza
  3.  */
  4. #ifndef __ASM_INVENTORY_H
  5. #define __ASM_INVENTORY_H
  6. #include <linux/config.h>
  7. #ifdef CONFIG_BINFMT_IRIX
  8. typedef struct inventory_s {
  9. struct inventory_s *inv_next;
  10. int    inv_class;
  11. int    inv_type;
  12. int    inv_controller;
  13. int    inv_unit;
  14. int    inv_state;
  15. } inventory_t;
  16. extern int inventory_items;
  17. void add_to_inventory (int class, int type, int controller, int unit, int state);
  18. int dump_inventory_to_user (void *userbuf, int size);
  19. void init_inventory (void);
  20. #else
  21. #define add_to_inventory(c,t,o,u,s)
  22. #define init_inventory()
  23. #endif
  24. #endif /* __ASM_INVENTORY_H */