memory.h 1.1 KB

1234567891011121314151617181920212223242526272829
  1. /******************************************************************************
  2. *******************************************************************************
  3. **
  4. ** Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
  5. ** Copyright (C) 2004-2005 Red Hat, Inc. All rights reserved.
  6. **
  7. ** This copyrighted material is made available to anyone wishing to use,
  8. ** modify, copy, or redistribute it subject to the terms and conditions
  9. ** of the GNU General Public License v.2.
  10. **
  11. *******************************************************************************
  12. ******************************************************************************/
  13. #ifndef __MEMORY_DOT_H__
  14. #define __MEMORY_DOT_H__
  15. int dlm_memory_init(void);
  16. void dlm_memory_exit(void);
  17. struct dlm_rsb *allocate_rsb(struct dlm_ls *ls, int namelen);
  18. void free_rsb(struct dlm_rsb *r);
  19. struct dlm_lkb *allocate_lkb(struct dlm_ls *ls);
  20. void free_lkb(struct dlm_lkb *l);
  21. struct dlm_direntry *allocate_direntry(struct dlm_ls *ls, int namelen);
  22. void free_direntry(struct dlm_direntry *de);
  23. char *allocate_lvb(struct dlm_ls *ls);
  24. void free_lvb(char *l);
  25. #endif /* __MEMORY_DOT_H__ */