Pete Zaitcev ([info]zaitcev) wrote,
@ 2006-08-29 17:57:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
sysfs is the new ioctl
I just received a (cc:) of a patch submission with the following description:
This patch against 2.6.17.8 is a driver for the PlayStation 2 specific Trance Vibrator device. The only thing that device can do is vibrate at various speeds.

Applications of this device are obvious, and I suspect that plastic or silicone adaptors of various shapes can be bought for it.

The driver does not plug into character device framework, input framework, and any place of such nature. Instead, it creates a sysfs attribute "speed". Desired level of personal comfort N is achieved by running "echo -n N >/sys/class/usb_device/usbdev1.3/device/speed", or "echo -n N /sys/bus/usb/devices/1-3:1.0/speed" (if you prefer geographical addressing), or any other equivalent: sysfs provides innumerable ways to accomplish the same thing.

I am not quite sure if this is progress, but at least the hacker does not need to think about ioctl number conflicts anymore. Actually... naming an attribute "speed" is asking for trouble, because this is what hub driver uses.



(Post a new comment)


[info]abbra
2006-08-30 10:06 am UTC (link)
Феерический драйвер. А может быть speed действительно стоит заменить на frequency? :-)

(Reply to this) (Thread)


[info]zaitcev
2006-08-31 02:53 am UTC (link)
There's more to it. For example, the value of speed is what the device takes, raw. Suppose a second generation device appears, and then what? If it were pulses per second, or pulse period in milliseconds, I'd be more comfortable with this.

(Reply to this) (Parent)

Rez
(Anonymous)
2006-08-30 11:58 am UTC (link)
Dunno about the attachments, but yes, seems some applications are obvious.
http://www.gamegirladvance.com/archives/2002/10/26/sex_in_games_rezvibrator.html
Rez itself is a fairly cool game for the playstation, though too short.

(Reply to this)


Create an Account
Forgot your login?
Login w/ OpenID
English • Español • Deutsch • Русский…