kishore,

The memory leak is in your "external binary package."  It has nothing to
do with any version of any package or distribution or kernel that you are
using.

I do not really enjoy debugging your code for you, particularly when you
have made no commitment or contribution to either project.  Perhaps it
is a language barrier, yet you seem to fully expect others to go out of
their way to correct your errors and oversights, as though they have
nothing better to do.  It is even worse that you expect an open source
community to go out of its way to help further your commercial endeavours.

As it appears that you are not well versed in STREAMS programming, I
suggest that you stare long and hard at pwmodule.c.  Suggested reading
is the "System V Release 4 Programmer's Manual -- STREAMS".  Start by
making pwmodule.c follow all of the design guidelines listed for Modules
and Drivers in that document.

--brian

On Wed, 15 Feb 2006, kishore wrote:

> hai there,
> I am working on,
> Red Hat Enterprise Linux ES release 4 (Nahant Update 2), 
> Kernel 2.6.9-22.EL on an i686 . 
> I used LiS-2.18.0, but not able to compile on above specified version.
> I got a patch on ( Delivery-Date: Mon, 26 Dec 2005 14:02:57 -0500); 
> then  I compiled and loaded streams successfully. I observed a memory leak 
> issue when I added an external binary package to the LiS. 
> 
> I did the following steps :
> 1. I created a soft link as,
>         cd /usr/src
>         ln -fs kernels/2.6.9-22.EL-i686 linux
> 2. I am going to send a zip file as an attachment which comprises :
>         1. pwmodule.c (streams driver )
>         2. Config
>         3. Makefile-streams
>         4. Makefile (to compile pwmodule.c)
>         5. test.c (a test sample for device /dev/pwdev)
>         6. result ( obtained from /sbin/dmesg)
>         7. copy.bat (creates folder /usr/src/LiS/pkg/pware  and
>                                 copies the Config,
>                                 Makefile-streams,pwmodule.o)
>         8. LiS-2.18.0-RHEL4.patch ( patch used to compile
>                     LiS-2.18.0 on RH-ES4 with 2.6.9-22.EL-i686)
> 3. I did  a change in
>      "/usr/src/LiS/include/sys/LiS/linux-mdep.h"
>         line 140 :  #include <linux/interrupt.h>
>                             to
>                         #ifndef PACKETWARE
>                         #include<linux/interrupt.h>
>                         #endif
>       to compile the driver. This is the only change I made.
> 
>     Thanks in advance for any suggestion on above issue.
> regards,
> kishore,packetware.
> 
> 

> Archive:  /home/brian/tmp/%.zip   16426 bytes   9 files
> -rw-rw-rw-  2.0 fat      275 t- defN  9-Feb-06 11:23 dummy-pwmodule/Config
> -rwxa--     2.0 fat      157 t- defN  9-Feb-06 11:23 dummy-pwmodule/copy.bat
> -rw-rw-rw-  2.0 fat    36109 t- defN 27-Dec-05 09:11 
> dummy-pwmodule/LiS-2.18.0-RHEL4.patch
> -rw-rw-rw-  2.0 fat      281 t- defN  9-Feb-06 11:23 dummy-pwmodule/Makefile
> -rw-rw-rw-  2.0 fat      133 t- defN  9-Feb-06 11:23 
> dummy-pwmodule/Makefile-streams
> -rw-rw-rw-  2.0 fat     1429 t- defN  9-Feb-06 11:23 dummy-pwmodule/pwmodule.c
> -rw-rw-rw-  2.0 fat    15879 t- defN  9-Feb-06 11:23 dummy-pwmodule/result
> -rw-rw-rw-  2.0 fat      259 t- defN  9-Feb-06 11:23 dummy-pwmodule/test.c
> drwxrwxrwx  2.0 fat        0 b- stor 14-Feb-06 09:52 dummy-pwmodule/
> 9 files, 54522 bytes uncompressed, 15286 bytes compressed:  72.0%


-- 
Brian F. G. Bidulock    ¦ The reasonable man adapts himself to the ¦
[EMAIL PROTECTED]    ¦ world; the unreasonable one persists in  ¦
http://www.openss7.org/ ¦ trying  to adapt the  world  to himself. ¦
                        ¦ Therefore  all  progress  depends on the ¦
                        ¦ unreasonable man. -- George Bernard Shaw ¦
_______________________________________________
Linux-streams mailing list
[email protected]
http://gsyc.escet.urjc.es/mailman/listinfo/linux-streams

Reply via email to