[Yaffs] How to find the name of a device given only a "yaffs…

Página superior
Adjuntos:
Obtener este mensaje como un correo
+ (text/plain)
+ (text/html)
Eliminar este mensaje
Responder a este mensaje
Autor: Patrice LAPORTE
Fecha:  
A: yaffs@lists.aleph1.co.uk
Asunto: [Yaffs] How to find the name of a device given only a "yaffs_dev *" ?
Good morning to all of you :)


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.)

Many thanks by advance
Patrice