Skip to contentSkip to conversation

Driver-specific ioctls

DISCUSSION Gavin Lambert 2 participants 2 messages Feb 1, 2007 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

I came across a situation the other day where I wanted to get some more esoteric data from an MTD chip driver into userspace (mostly for debugging purposes). Sadly (at least in 2.6.15) mtdchar doesn't pass any unrecognised ioctls to the MTD driver, which seems like the cleanest way to do that sort of thing.

Any chance that this could get added? Or is there a similar mechanism already that I have somehow missed?

#1 lore raw
Quoted 5 lines · Gavin Lambert

I came across a situation the other day where I wanted to get some more esoteric data from an MTD chip driver into userspace (mostly for debugging purposes). Sadly (at least in 2.6.15) mtdchar doesn't pass any unrecognised ioctls to the MTD driver, which seems like the cleanest way to do that sort of thing.

Add sysfs support to mtd and export nearly any data outside.

Signature · 2 lines
Best regards,
Artem Bityutskiy (Битюцкий Артём)