Re: syncfs() method of fs

2024-02-14 Thread Gregory Nutt
It implementes the syncfs file system interface:  
https://linux.die.net/man/2/syncfs


On 2/14/2024 8:16 AM, Saurav Pal wrote:

Hi all,

I was going through the codebase of different file systems, and I haven't
yet understood the syncfs() method of mountpt operations.

There aren't any existing filesystems in the codebase that implement it,
and I couldn't understand what exactly is required from this method (like
what it does, what side effects it's supposed to have and what is the
intended reason for this method to exist).

Can you please help me understand it? Thanks in advance.

Regards,
SP





Re: Addition of New Chip STM32F427AI

2024-02-14 Thread Alan C. Assis
Hi,

Let me show something "magic" :

$ cd nuttx/arch/arm/src/stm32/hardware/
$ git grep STM32F427

Now you have super power!!! ;-)

Best Regards,

Alan

On Wed, Feb 14, 2024 at 2:25 AM Janardhan Silwal <
janardhansil...@outlook.com> wrote:

> I looked into the folder "arch/arm/src/stm32/hardware" there does not seem
> to be specific definition files for STM32F427. Any idea where the
> definitions for the F427 family is defined.
> I could then move on to add support for the unsupported features of
> STM32F427AI.
>
> Thanks
> Janardhan Silwal
>
> 
> From: Gregory Nutt 
> Sent: Tuesday, February 13, 2024 02:37
> To: dev@nuttx.apache.org 
> Subject: Re: Addition of New Chip STM32F427AI
>
> The STM32F427AI is in the same family as STM32F427xx (STM32F427V,
> STM32F427Z, STM32F427I) and STM32F429xx, which are already supported.
>
> The first thing to do is to decide which is of the supported parts is
> most like the STM32F427AI.  Mostly likely it is just a difference in
> memory size or something similar.
>
> The package STM32F427AI has more pins so some other functionality must
> be brought out.
>
> On 2/12/2024 2:06 PM, Alan C. Assis wrote:
> > Hi Janardhan,
> >
> > You can start looking at which STM32F4xx chip existent on NuttX is more
> > similar to STM32F427AI and start your port based on it.
> >
> > You can do it using the chip datasheet and/or reference manual, writing
> > down the difference in peripherals, registers, etc.
> >
> > Normally STM32 devices share many features, but sometimes they have small
> > incompatibilities.
> >
> > So, look the existing chips on NuttX (nuttx/arch/arm/src/stm32/hardware/
> > and nuttx/arch/arm/include/stm32/
> >
> > Best Regards,
> >
> > Alan
> >
> > On Mon, Feb 12, 2024 at 8:50 AM Janardhan Silwal <
> > janardhansil...@outlook.com> wrote:
> >
> >> Hi Community,
> >>
> >> I have a board which uses STM32F427AI, and was planning on running a
> >> middleware which runs over nuttx, but only noticed, after the board
> arrived
> >> from manufacturing that there is no option to select, STM32F427AI from
> the
> >> menuconfig/qconfig.
> >>
> >> I don't have an option to replace the chip to the ones which are
> currently
> >> supported and thus, want to add  the support for STM32F427AI, but don't
> >> know where to start.
> >>
> >> Hoping to get some direction, from where I can start.
> >>
> >> Thanks in advance.
> >> janardhan
> >>
>


syncfs() method of fs

2024-02-14 Thread Saurav Pal
Hi all,

I was going through the codebase of different file systems, and I haven't
yet understood the syncfs() method of mountpt operations.

There aren't any existing filesystems in the codebase that implement it,
and I couldn't understand what exactly is required from this method (like
what it does, what side effects it's supposed to have and what is the
intended reason for this method to exist).

Can you please help me understand it? Thanks in advance.

Regards,
SP