RTEMS | Draft: IMFS User allocator Plugin Code (!534)
Bhavya Shah (@bhavyaBeliever)
gitlab at rtems.org
Wed Jul 23 07:27:19 UTC 2025
Bhavya Shah started a new discussion on cpukit/libfs/src/imfs/imfs_initsupp.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/534#note_127095
>
> +// IMFS_memfile_ops *imfs_memfile_ops;
> +
> +#if 0
> +void IMFS_memfile_ops_init(void){
> + int use_default_ops = 0;
> + IMFS_memfile_ops configure_imfs_memfile_ops;
> +
> + #ifndef CONFIGURE_IMFS_MEMFILE_OPS
> + use_default_ops = 1;
> + #else
> + configure_imfs_memfile_ops = CONFIGURE_IMFS_MEMFILE_OPS;
> + use_default_ops |= (configure_imfs_memfile_ops.allocate == NULL);
> + use_default_ops |= (configure_imfs_memfile_ops.deallocate == NULL);
> + use_default_ops |= (configure_imfs_memfile_ops.get_free_space == NULL);
> + #endif
@joel we need to handle cases like, If the user passes the null function pointers. So this function can handle such cases.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/534#note_127095
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/20250723/5c9e52f3/attachment-0001.htm>
More information about the bugs
mailing list