All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/5] Refactor media IOCTL handling, add variable length arguments
@ 2016-07-21 11:14 Sakari Ailus
  2016-07-21 11:14 ` [PATCH v3 1/5] media: Determine early whether an IOCTL is supported Sakari Ailus
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Sakari Ailus @ 2016-07-21 11:14 UTC (permalink / raw)
  To: linux-media; +Cc: laurent.pinchart, hverkuil, mchehab

Hi,

This is the third version of the media IOCTL handling rework set. What's
changed since v2:

patch 3:

- Remove function to calculate maximum argument size, replace by a char         
  array of 256 or kmalloc() if that's too small.                                

- info->arg_from_user() may fail. Check the return code.                        

- Instead of providing a no-operation of a copy function, check whether one is  
  defined. If not, don't call one.                                              

patch 4:

- Arrange the flags field next to cmd, which is an integer. This avoids         
  creating extra holes in the struct memory layout.                             

patch 5:

- Use a list of supported argument sizes instead of a minimum value.

---

The patches themselves have been reworked so I don't detail the changes         
in this set. What's noteworthy however is that the set adds support for         
variable length IOCTL arguments.                                                
                                                                                
(The motivation for these patches is having found myself pondering whether      
to have nine or thirteen reserved fields for the request IOCTL. I decided       
to address the problem instead. If this is found workable on the media          
controller we could follow the same model on V4L2.)                             

-- 
Kind regards,
Sakari


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

end of thread, other threads:[~2016-08-11 20:39 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-21 11:14 [PATCH v3 0/5] Refactor media IOCTL handling, add variable length arguments Sakari Ailus
2016-07-21 11:14 ` [PATCH v3 1/5] media: Determine early whether an IOCTL is supported Sakari Ailus
2016-07-22 10:27   ` Hans Verkuil
2016-07-22 11:04     ` Sakari Ailus
2016-07-21 11:14 ` [PATCH v3 2/5] media: Unify IOCTL handler calling Sakari Ailus
2016-07-22 10:28   ` Hans Verkuil
2016-07-21 11:14 ` [PATCH v3 3/5] media: Refactor copying IOCTL arguments from and to user space Sakari Ailus
2016-07-22 10:28   ` Hans Verkuil
2016-07-21 11:17 ` [PATCH v3 4/5] media: Add flags to tell whether to take graph mutex for an IOCTL Sakari Ailus
2016-07-21 11:17   ` [PATCH v3 5/5] media: Support variable size IOCTL arguments Sakari Ailus
2016-07-22 10:36     ` Hans Verkuil
2016-08-11 20:38       ` Sakari Ailus
2016-07-22 10:28   ` [PATCH v3 4/5] media: Add flags to tell whether to take graph mutex for an IOCTL Hans Verkuil

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.