40 Commits

Author SHA1 Message Date
Godzil
2ce7c94d11 Buffer size need to be at least a page size. (probably better to keep it a multiple of a page size) v1.14 2019-07-24 16:08:52 +01:00
Godzil
36fd2b86c5 Add sample udev file 2019-07-24 16:06:37 +01:00
Godzil
c37e562e5f Add example of use of mmap 2019-07-24 16:06:19 +01:00
Godzil
57ae74c803 Update userspace to have proper protection values for mmap and send the proper flags to the callback function. 2019-07-24 16:04:20 +01:00
Godzil
a54adc616d Send proper flags to userspace 2019-07-24 16:01:28 +01:00
Godzil
095ac4569a Update mmap related error to be a bit more useful for debug 2019-07-24 15:59:34 +01:00
Godzil
70f58ed6dc Update 2018 -> 2019 2019-07-24 15:57:48 +01:00
Godzil
596df479c2 Remove all SVN/CVS $Id$ idoms. 2019-07-24 15:55:35 +01:00
Godzil
1cf7fd077c Correct some potential 32bit/64bit issues. 2019-07-24 15:42:37 +01:00
Godzil
75a05048a4 Let's be paranoid: force the packing on important shared structures. 2019-07-24 15:41:21 +01:00
Godzil
0ce298ca33 Remove some warnings, and correct some errors in examples 2019-07-24 15:40:37 +01:00
Godzil
fa61f857a7 Reformating to try to match better kernel coding style. v1.14-pre2 2018-05-10 15:38:45 +01:00
Godzil
684a150a21 Remove support for user provided class as it is way too problematic to recover existing classes. 2018-05-10 15:28:13 +01:00
Godzil
4db826209e Add (and use) git describe to get module version. 2018-05-10 15:20:52 +01:00
Godzil
1b50ad2d74 Update some copyrights 2018-05-10 15:20:06 +01:00
Godzil
48264ec40a Add preliminary support for more recent kernel (~4.15)
It is currently building with a Debian 4.15.11-1, but hasn't been tested
and is expecting to crash really hard. Do no try unless you are ready to
hard crash your system. It should support most version between the
~2.6.32 and this 4.15.11.
v1.14-pre
2018-05-08 15:39:51 +01:00
Godzil
1afa952fb0 Fix PEBCAK v1.13.3 2012-12-04 14:26:06 +01:00
Godzil
b208b10645 I was a bit optimistic. 2.6.32 does not support DECLARE_SEMAPHORE.
Now use DECLARE_MUTEX up to 2.6.35 (need to be checked)

Signed-off-by: Godzil <godzil@godzil.net>
2012-10-16 20:07:34 +02:00
Godzil
3c0b0cdd4b Correct support for kernel <2.6.33 2012-09-10 20:12:13 +02:00
Godzil
9f496af46b Correct fusd_destroy to lock and check before freeing. 2012-07-10 14:06:27 +02:00
Godzil
fd1f2a7374 Cosmetics, cosmetics and cosmetics. 2012-07-10 14:06:00 +02:00
Godzil
0678a66b3c add locking mechanism in the fusd_file_info_t structure to prevent potential race conditions. 2012-07-10 14:00:05 +02:00
Godzil
542d87ea75 Update libfusd accordingly with latest changes in kfusd. 2012-07-10 13:49:37 +02:00
Godzil
472265ae8a Add support for newers kernels, remove the temporary IOCTL and set back the writev function. v1.13.2 2012-07-10 12:48:23 +02:00
Godzil
789713fa0b Make change to allow to compile under kernel version > 2.6.36 (tested with a 3.2.9 kernel) v1.13.1 2012-04-04 11:31:16 +02:00
Godzil
efd39ff55a Update README file (and convert it to Markdown) 2012-02-13 18:36:24 +01:00
Godzil
788c45bd77 Update to lastest version v1.13 2012-01-18 14:47:25 +01:00
Godzil
a667d5412c Update some parts. 2012-01-18 14:46:38 +01:00
Godzil
8db24fbd1d small changes 2012-01-18 14:46:27 +01:00
Godzil
57dc545fad commit latest changes 2012-01-18 14:46:10 +01:00
xiphmont
bd9d3e1df3 Update the fusd examples now that multiple registration is no longer bitrotted.
git-svn-id: http://svn.xiph.org/trunk/fusd@12355 0101bb08-14d6-0310-b084-bc0e0c8e3800
v1.12
2007-01-19 17:44:17 +00:00
xiphmont
cc3e84dfbf Try using the class if we're going to bother looking it up
git-svn-id: http://svn.xiph.org/trunk/fusd@12354 0101bb08-14d6-0310-b084-bc0e0c8e3800
2007-01-19 17:26:14 +00:00
xiphmont
0bf42c8088 Add code to crawl sysfs to find preexisting classes; now we can
register multiple devices of the same type for classes other than just
'sound'



git-svn-id: http://svn.xiph.org/trunk/fusd@12352 0101bb08-14d6-0310-b084-bc0e0c8e3800
2007-01-19 17:13:16 +00:00
xiphmont
41185bd56b Throttle logging so that it's not so bloody easy to accidentally take out a machine with a zombified daemon.
git-svn-id: http://svn.xiph.org/trunk/fusd@12351 0101bb08-14d6-0310-b084-bc0e0c8e3800
2007-01-19 07:22:54 +00:00
xiphmont
55b0389911 Correct a bug in which all valid interrupted write operations were being erroneously tossed (== instead of !=)
git-svn-id: http://svn.xiph.org/trunk/fusd@12350 0101bb08-14d6-0310-b084-bc0e0c8e3800
2007-01-19 04:00:37 +00:00
xiphmont
243da80fc6 Sufficiently updated docs, build system and a few of the examples for
an initial release.

Primary remaining problem: udev-style kernels don't allow registration of a
preexisting class right now.  This will need to be fixed semi-immediately.



git-svn-id: http://svn.xiph.org/trunk/fusd@12316 0101bb08-14d6-0310-b084-bc0e0c8e3800
2007-01-13 09:30:10 +00:00
xiphmont
48511c545d Build system fix-- now to update all the poor bitrotted examples so
they actually build.



git-svn-id: http://svn.xiph.org/trunk/fusd@12315 0101bb08-14d6-0310-b084-bc0e0c8e3800
2007-01-13 09:00:28 +00:00
xiphmont
0922adc0b1 Add examples to default make
git-svn-id: http://svn.xiph.org/trunk/fusd@12314 0101bb08-14d6-0310-b084-bc0e0c8e3800
2007-01-13 08:55:34 +00:00
xiphmont
5880dc8fe1 First attempt at simple examples makefile
git-svn-id: http://svn.xiph.org/trunk/fusd@12313 0101bb08-14d6-0310-b084-bc0e0c8e3800
2007-01-13 08:54:07 +00:00
xiphmont
0f5535a756 Place personal working copy of fusd into revision control
git-svn-id: http://svn.xiph.org/trunk/fusd@12312 0101bb08-14d6-0310-b084-bc0e0c8e3800
v1.11
2007-01-13 08:39:56 +00:00