RTEMS | IMFS User allocator Plugin Code (!534)
Bhavya Shah (@bhavyaBeliever)
gitlab at rtems.org
Wed Jul 2 12:55:13 UTC 2025
Bhavya Shah commented on a discussion on cpukit/libfs/src/imfs/imfs_init.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/534#note_125735
> .fifo = &IMFS_mknod_control_enosys
> };
>
> +void IMFS_memfile_ops_init(void){
> + if(!imfs_memfile_ops.allocator || !imfs_memfile_ops.deallocator || !imfs_memfile_ops.free_space){
There is for sure need that of allocator and deallocator to be either defined by user or the default should be used. If user defines it's own allocator-deallocator only user's code can tell the free space is available from the static allocated place. This get_free_space will be used during `statvfs.f_bfree`.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/534#note_125735
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/20250702/b433d804/attachment-0001.htm>
More information about the bugs
mailing list