Using _syscall3 to manipulate files in a driver
- From: "Jon Smirl" <jonsmirl@xxxxxxxxx>
- Date: Sun, 31 Dec 2006 12:13:52 -0500
I have the source code for a vendor written driver that is targeted at
2.6.9. It includes this and then proceeds to manipulate files from the
driver.
asmlinkage _syscall3(int,write,int,fd,const char *,buf,off_t,count)
asmlinkage _syscall3(int,read,int,fd,char *,buf,off_t,count)
asmlinkage _syscall3(int,open,const char *,file,int,flag,int,mode)
asmlinkage _syscall1(int,close,int,fd)
What is the simplest way to get open/close/read/write working under
2.6.20-rc2? I know this is horrible and shouldn't be done, I just want
to get the driver working long enough to see if it is worth saving.
I'm on x86.
--
Jon Smirl
jonsmirl@xxxxxxxxx
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Prev by Date: [PATCH 2.6.20-rc2] Add a quirk to allow ENE PCI SD card readers to work again
- Next by Date: Re: fuse, get_user_pages, flush_anon_page, aliasing caches and all that again
- Previous by thread: [KVM][PATCH] smp_processor_id() and sleeping functions used in invalid context
- Next by thread: compile failure on 2.6.19
- Index(es):
Relevant Pages
- Re: Using _syscall3 to manipulate files in a driver
... asmlinkage _syscall3(int,write,int,fd,const char *,buf,off_t,count) ...
What is the simplest way to get open/close/read/write working under ... to get the driver
working long enough to see if it is worth saving. ... (Linux-Kernel) - [PATCH 2.6.18 V7] drivers: add lcd display support
... Adds support for the cfag12864b LCD Display as a device driver. ... +The buffer
should be a 128*64 unsigned char array: ... * GNU General Public License for more
details. ... +static void cfag12864b_setbit ... (Linux-Kernel) - Re: Documentation for sysfs, hotplug, and firmware loading.
... don't follow symlinks, it works fine up until about 2.6.20 at which point ...
char:) Check SUBSYSTEM for what your device actually is. ... If this is "block", it's a
block device. ... a suggested driver for handling this device. ... (Linux-Kernel) - Re: [PATCH] I2C update for 2.6.8-rc1
... This is my port of the adm1025 driver to 2.6. ... * GNU General Public License
for more details. ... char *buf) ... (Linux-Kernel) - [2.6 patch] framebuffer: Remove old radeon driver
... This patch removes the old radeon driver which has been replaced by a ... This
patch was sent by Michael Hanselmann on: ... tristate "ATI Radeon display support"
... -static char noaccel = 0; ... (Linux-Kernel)