RTEMS | IMFS User allocator Plugin Code (!534)

Gedare Bloom (@gedare) gitlab at rtems.org
Tue Aug 26 17:35:45 UTC 2025




Gedare Bloom started a new discussion on cpukit/include/rtems/imfs.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/534#note_129513

 > + * @param allocate The function which will be used to allocate IMFS blocks.
 > + * @param deallocate The function to deallocate the allocated data blocks.
 > + * @param get_free_space The function used by kernel to get the free space.
 > + */
 > +struct IMFS_memfile_ops_t {
 > +  IMFS_memfile_allocator allocate_block;
 > +  IMFS_memfile_deallocator free_block;
 > +  IMFS_memfile_free_space get_free_space;
 > +};
 > +
 > +/**
 > + * @brief The default allocator
 > + *
 > + * @details The allocator uses the memory from the heap.
 > + */
 > +void *IMFS_default_allocator(void);

Should these default functions also be named like `IMFS_default_allocate_block`?

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/534#note_129513
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250826/c4fcc846/attachment-0001.htm>


More information about the bugs mailing list