inventory.h 538 B

123456789101112131415161718192021222324
  1. /*
  2. * Miguel de Icaza
  3. */
  4. #ifndef __ASM_INVENTORY_H
  5. #define __ASM_INVENTORY_H
  6. #include <linux/compiler.h>
  7. typedef struct inventory_s {
  8. struct inventory_s *inv_next;
  9. int inv_class;
  10. int inv_type;
  11. int inv_controller;
  12. int inv_unit;
  13. int inv_state;
  14. } inventory_t;
  15. extern int inventory_items;
  16. extern void add_to_inventory(int class, int type, int controller, int unit, int state);
  17. extern int dump_inventory_to_user(void __user *userbuf, int size);
  18. extern int __init init_inventory(void);
  19. #endif /* __ASM_INVENTORY_H */