Hello Patrice
On Fri, Mar 17, 2017 at 2:54 AM, Patrice LAPORTE <
patrice.laporte@schneider-electric.com> wrote:
> Good morning to all of you J
>
>
>
>
>
> I’m looking for a way to retrieve the name of a device given a
> “yaffs_dev”. I’m adding some information in a log about our various
> partitions on our hardware, and the function “yaffs_verify_blocks” is
> printing some information about blocks.
>
> But this function only prints without giving the name of the device, and
> sinceit’s called 4 times because we have 4 partitions, I have 4 times the
> same kind of information but without the name of the corresponding
> partition.
>
>
>
> So, since the “yaffs_verify_blocks” as only a “yaffs_dev*” as a parameter
> I want to find a way to get the device name from it (in my case, I want to
> find the name of our 4 partition that are “/flash”, “/data” etc.)
>
There is some flexibility in how you connect things up, but normally dev->
param.name would dive a partition name.
If that does not work, we'll need to dig a bit deeper.
Regards
-- Charles