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.


_______________________________________________
bugs mailing list
bugs@rtems.org
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to