linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* "ls > /dev/fb0" generates weird ioctls if panning is set
@ 2011-12-16 21:49 Timur Tabi
  2011-12-16 22:31 ` Timur Tabi
  2011-12-16 23:03 ` Anatolij Gustschin
  0 siblings, 2 replies; 3+ messages in thread
From: Timur Tabi @ 2011-12-16 21:49 UTC (permalink / raw)
  To: linux-fbdev

If I do this:

	echo "0,100" > /sys/devices/soc.0/fffe10000.display/graphics/fb0/pan

then whenever I do this:

	ls > /dev/fb0

my driver receives the following three ioctls:

graphics fb0: unknown ioctl command (0x402C7413)                                                                                                   
graphics fb0: dir=2 type='t' (74) nr\x19 sizeD                                                                                                    
graphics fb0: unknown ioctl command (0x40087468)                                                                                                   
graphics fb0: dir=2 type='t' (74) nr\x104 size=8                                                                                                    
graphics fb0: unknown ioctl command (0x402C7413)                                                                                                   
graphics fb0: dir=2 type='t' (74) nr\x19 sizeD   

This is on PowerPC, where dir=2 means read.

The "echo" and "cat" commands don't generate these ioctls, so there's something special about the "ls" command.  Does anyone know what's going on?  ioctl-number.txt lists these ioctls for type 't':

't'	00-7F	linux/if_ppp.h
't'	80-8F	linux/isdn_ppp.h
't'	90	linux/toshiba.h

-- 
Timur Tabi
Linux kernel developer at Freescale


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

end of thread, other threads:[~2011-12-16 23:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-16 21:49 "ls > /dev/fb0" generates weird ioctls if panning is set Timur Tabi
2011-12-16 22:31 ` Timur Tabi
2011-12-16 23:03 ` Anatolij Gustschin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).