Google
  Web www.spinics.net

Re: [linuxtv-commits] [hg:v4l-dvb] Remove unused inode parameter from video_ioctl2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Tue, 21 Oct 2008 18:50:20 +0200
Hans Verkuil <hverkuil@xxxxxxxxx> wrote:

> Hi Mauro,
> 
> Good move this change, but why keep the name '__video_ioctl2' instead of 
> renaming it to 'video_ioctl2_unlocked'?
> 
> '__video_ioctl2' is not exactly a very descriptive name IMHO :-)

It took me some time to understand video_ioctl2_unlocked(), since I didn't see
any lock anywhere :)

After understanding that it were just getting hid of inode, I decided to remove
inode from the ioctl handlers, keeping it only at the fops.ioctl handler.

I've named as __video_ioctl2 for two reasons:

1) There's no lock at video_ioctl2 or at __video_ioctl2. So, calling it as
unlocked seemed a very bad name;

2) It is a kind of standard inside kernel that __foo() being a lower level
version of foo().

Anyway, I hope people will start migrating to the unlocked version. After
having everything using __video_ioctl2, we may simple rename it to video_ioctl2.

Cheers,
Mauro

_______________________________________________
v4l-dvb-maintainer mailing list
v4l-dvb-maintainer@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/v4l-dvb-maintainer

[Linux Media]     [Older V4L]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [SSH]     [Linux USB]

-->
Add to Google Powered by Linux

Google PageRank Checking tool