Re: Can't use SYSFS for "Proprietry" driver modules !!!.

Jim Crilly
2005-03-29T05:58:30Z

On 03/29/05 10:37:52AM +0800, Coywolf Qi Hunt wrote:
> Lee Revell wrote:
> >On Sat, 2005-03-26 at 10:28 -0800, Greg KH wrote:
> >
> >>On Sat, Mar 26, 2005 at 05:52:20PM +0000, Mark Fortescue wrote:
> >>
> >>>I am writing a "Proprietry" driver module for a "Proprietry" PCI card and
> >>>I have found that I can't use SYSFS on Linux-2.6.10.
> >>>
> >>>Why ?.
> >>
> >>What ever gave you the impression that it was legal to create a
> >>"Proprietry" kernel driver for Linux in the first place.
> >
> >
> >The fact that Nvidia and ATI get away with it?
>
> I have the nvidia GeForce4 driver: NVIDIA-Linux-x86-1.0-6629-pkg1.
>
> $ ls NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/
> Makefile@ makedevices.sh* nv-vm.c nv_compiler.h os-agp.c
> os-registry.c
> Makefile.kbuild makefile nv-vm.h nvidia.ko os-agp.h
> os-registry.o
> Makefile.nvidia nv-kernel.o nv-vm.o nvidia.mod.c os-agp.o
> pat.h
> README nv-linux.h nv.c nvidia.mod.o
> os-interface.c precompiled/
> conftest.sh nv-memdbg.h nv.h nvidia.o
> os-interface.h rmretval.h
> gcc-version-check.c nv-misc.h nv.o nvtypes.h os-interface.o
>
>
> So it seems nvidia has their kernel module `open'. Is it?

See that 4.2M binary file called nv-kernel.o? That's the real driver, the open
part is the glue, a sort of middle-ware so that the driver can be
recompiled and loaded into any kernel.

>
>
> Coywolf
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/