All of lore.kernel.org
 help / color / mirror / Atom feed
From: Timur Tabi <timur@freescale.com>
To: linux-fbdev@vger.kernel.org
Subject: "ls > /dev/fb0" generates weird ioctls if panning is set
Date: Fri, 16 Dec 2011 21:49:30 +0000	[thread overview]
Message-ID: <4EEBBCEA.9020104@freescale.com> (raw)

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


             reply	other threads:[~2011-12-16 21:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-16 21:49 Timur Tabi [this message]
2011-12-16 22:31 ` "ls > /dev/fb0" generates weird ioctls if panning is set Timur Tabi
2011-12-16 23:03 ` Anatolij Gustschin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EEBBCEA.9020104@freescale.com \
    --to=timur@freescale.com \
    --cc=linux-fbdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.