lightnvm.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (C) 2016 CNEX Labs. All rights reserved.
  3. * Initial release: Matias Bjorling <matias@cnexlabs.com>
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License version
  7. * 2 as published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful, but
  10. * WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; see the file COPYING. If not, write to
  16. * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139,
  17. * USA.
  18. *
  19. */
  20. #ifndef LIGHTNVM_H
  21. #define LIGHTNVM_H
  22. #include <linux/lightnvm.h>
  23. /* core -> sysfs.c */
  24. int __must_check nvm_sysfs_register_dev(struct nvm_dev *);
  25. void nvm_sysfs_unregister_dev(struct nvm_dev *);
  26. int nvm_sysfs_register(void);
  27. void nvm_sysfs_unregister(void);
  28. /* sysfs > core */
  29. void nvm_free(struct nvm_dev *);
  30. #endif