public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Discovering current MTD partition
@ 2011-04-26 23:43 Umar Qureshey
  2011-04-27  5:31 ` Artem Bityutskiy
  2011-04-28 18:08 ` Bjørn Forsman
  0 siblings, 2 replies; 18+ messages in thread
From: Umar Qureshey @ 2011-04-26 23:43 UTC (permalink / raw)
  To: linux-mtd

Hi,

I searched this list's archive but did not see anything pertinent.

I was wondering if there is a way to find out what the currently active mtd
partition is.  In my system, I have a few flash partitions for my file
system and the kernel boots with the partition that is specified on the
kernel command line.  Aside from scanning /proc/cmdline, is there a way to
programmatically ascertain which mtd partition is active *now*.  
I need to find this information within a Python script but really if it can
be done in C (perhaps a syscall?), it's all I need.

Regards,
Umar

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2011-04-29  0:54 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-26 23:43 Discovering current MTD partition Umar Qureshey
2011-04-27  5:31 ` Artem Bityutskiy
2011-04-27  6:22   ` Ricard Wanderlof
2011-04-27 17:08     ` umar
2011-04-28  7:31       ` Ricard Wanderlof
2011-04-28  7:37         ` Artem Bityutskiy
2011-04-28  8:00           ` Ricard Wanderlof
2011-04-28  8:52             ` Artem Bityutskiy
2011-04-28  9:09               ` Ricard Wanderlof
2011-04-27  7:25   ` umar
     [not found]     ` <4DB7C9F9.9000609@free-electrons.com>
2011-04-27 17:14       ` umar
2011-04-28  4:27         ` Iwo Mergler
2011-04-28  7:39           ` Ricard Wanderlof
2011-04-28 17:26           ` umar
2011-04-28 17:48             ` Artem Bityutskiy
2011-04-29  0:53               ` umar
2011-04-28 18:08 ` Bjørn Forsman
2011-04-28 18:21   ` Atlant Schmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox