Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

linux-bangalore-programming · LB Programming Discussions

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 2207
  • Category: Linux
  • Founded: Mar 22, 2001
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

Advanced
Messages Help
Messages 1683 - 1712 of 7680   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#1683 From: "anish_iyer" <anish_iyer@...>
Date: Thu Aug 1, 2002 2:17 pm
Subject: Interrrupt handling in device Driver
anish_iyer
Send Email Send Email
 
hello BLUG buddies..
ive been facing some problem with interrupt Handling for a Network
Device Driver Program that im writing. The3 kernel gives a OOOPs
message saying Kernel Panic Not Syncing Interrupt and hangs. The code
is for  Realtek 8139 ethernet card..
the except of the Interrupt handling code is given below...
It would be really nice if someone could help me with the problem in
the peice of code..



void anich_interrupt_handler(int irq,void *dev_id,struct pt_regs
*regs)
  {
     struct net_device *dev = (struct net_device *)(dev_id);
     struct anich_priv *temp_priv;
     struct sk_buff *temp_buff = temp_priv->anich_skbuff;
     unsigned interrupt_value;
     long ioaddr = dev->base_addr;
      if(dev==NULL)               /* idf device is null the interrupt
cant be handled so return */
	 return;
      temp_priv = (struct anich_priv *) dev->priv;
     spin_lock(& temp_priv->lock);  /* lock the device */

     interrupt_value = Inb(ioaddr + ANICH_ISR);
			 if(interrupt_value & 0x0002)     /* 2nd bit
set indicates transmission ok*/

			   {temp_buff= temp_buff->next; /* moving to
next node when previous packet

		      was recieved successfully*/
                       anich_tx(temp_priv->anich_skbuff, dev);
		       }

		  if(interrupt_value & 0x0004)    /* 3rd bit set
indicates  transmission error */
			  anich_tx(temp_priv->anich_skbuff, dev);


		  if(interrupt_value & 0x0001)   /* 0th bit set
indicates receive OK */

anich_rx(dev, temp_priv->rx_packetlen,(char *) temp_priv-
>anich_skbuff);  /*????????*/
  Outb(0x00,ioaddr + ANICH_ISR);

return;

   }

ANICH_ISR is defined to the corresponding ioport region offset
address as indicated by the device data sheets

thanking you
Anish

#1684 From: Raghu.K@...
Date: Fri Aug 2, 2002 6:02 am
Subject: Removing Modules
Raghu.K@...
Send Email Send Email
 
Hello All,

I am trying to load a module using the insmod command. For some reason I get a
segmentation fault. Now the module is loaded as a "initializing" and if I try to
remove it using rmmod I get "Device or resource busy"

I have quiet a few of them now :-(

[root@CVSSERVER pci_scan]# lsmod
Module                  Size  Used by
t                       1824   1  (initializing)
test2                   1936   1  (initializing)
test1                   1904   1  (initializing)
test                    1184   1  (initializing)
DumpReg                 1120   1  (initializing)

Warm regards
Raghu.

#1685 From: Damarugendra M <damaru@...>
Date: Fri Aug 2, 2002 10:03 am
Subject: Re: [blug-prog] Interrrupt handling in device Driver
damaru_m
Send Email Send Email
 
comment the following line:

>      spin_lock(& temp_priv->lock);  /* lock the device */

#1686 From: karthik <karthik@...>
Date: Fri Aug 2, 2002 9:36 am
Subject: code coverage tool ?
karthik@...
Send Email Send Email
 
Hi,
        Which of the C code coverage tool for linux is best ?
Where do i get GCT for download, does it come with RH distributions.
(I was unable to find any decent document on GCT after google search)
I browsed through the rpm but unable to find any rpm related to GCT.

Thanks
Karthik

#1687 From: "Madhu Illam" <madhu@...>
Date: Fri Aug 2, 2002 12:13 pm
Subject: Re: [blug-prog] Removing Modules
madhu@...
Send Email Send Email
 
You won't be able to unload the module as the module usage count is
onzero( 1, as shown by lsmod).
This is so because the module's init_module is faulty and is causing
segmentation fault while initializing.

Madhu
----- Original Message -----
From: <Raghu.K@...>
To: <linux-bangalore-programming@yahoogroups.com>
Sent: Friday, August 02, 2002 11:32 AM
Subject: [blug-prog] Removing Modules


>
>
> Hello All,
>
> I am trying to load a module using the insmod command. For some reason I
get a
> segmentation fault. Now the module is loaded as a "initializing" and if I
try to
> remove it using rmmod I get "Device or resource busy"
>
> I have quiet a few of them now :-(
>
> [root@CVSSERVER pci_scan]# lsmod
> Module                  Size  Used by
> t                       1824   1  (initializing)
> test2                   1936   1  (initializing)
> test1                   1904   1  (initializing)
> test                    1184   1  (initializing)
> DumpReg                 1120   1  (initializing)
>
> Warm regards
> Raghu.
>
>
>
>
>
>
>
>
> ---------------------------------------------------------------
> This is the programming list of the Bangalore Linux Users Group
> ---------------------------------------------------------------
>      Go to http://linux-bangalore.org for more information
>          about us, as well as our other mailing lists
>
>            Before you post to this list, please read
>     http://linux-bangalore.org/articles/smart-questions.php
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>

#1688 From: "Madhu Illam" <madhu@...>
Date: Fri Aug 2, 2002 1:33 pm
Subject: Re: [blug-prog] Interrrupt handling in device Driver
madhu@...
Send Email Send Email
 
The OOPS message indicates "An invalid dereferencing of a pointer has been
done" in the interrupt handler and
the kernel panics without syncing the filesystem buffers to the secondary
storage. In the code, temp_buff is initialized from uninitialized pointer
temp_priv...Could be the reason for panic..

Madhu

>void anich_interrupt_handler(int irq,void *dev_id,struct pt_regs
> *regs)
>

>     struct net_device *dev = (struct net_device *)(dev_id);
>     struct anich_priv *temp_priv;
>     struct sk_buff *temp_buff = temp_priv->anich_skbuff;



----- Original Message -----
From: anish_iyer <anish_iyer@...>
To: <linux-bangalore-programming@yahoogroups.com>
Sent: Thursday, August 01, 2002 7:47 PM
Subject: [blug-prog] Interrrupt handling in device Driver


> hello BLUG buddies..
> ive been facing some problem with interrupt Handling for a Network
> Device Driver Program that im writing. The3 kernel gives a OOOPs
> message saying Kernel Panic Not Syncing Interrupt and hangs. The code
> is for  Realtek 8139 ethernet card..
> the except of the Interrupt handling code is given below...
> It would be really nice if someone could help me with the problem in
> the peice of code..
>
>
>
> void anich_interrupt_handler(int irq,void *dev_id,struct pt_regs
> *regs)
>

>     struct net_device *dev = (struct net_device *)(dev_id);
>     struct anich_priv *temp_priv;
>     struct sk_buff *temp_buff = temp_priv->anich_skbuff;
>     unsigned interrupt_value;
>     long ioaddr = dev->base_addr;
>      if(dev==NULL)               /* idf device is null the interrupt
> cant be handled so return */
> return;
>      temp_priv = (struct anich_priv *) dev->priv;
>     spin_lock(& temp_priv->lock);  /* lock the device */
>
>     interrupt_value = Inb(ioaddr + ANICH_ISR);
> if(interrupt_value & 0x0002)     /* 2nd bit
> set indicates transmission ok*/
>
>   {temp_buff= temp_buff->next; /* moving to
> next node when previous packet
>
>      was recieved successfully*/
>                       anich_tx(temp_priv->anich_skbuff, dev);
>       }
>
> if(interrupt_value & 0x0004)    /* 3rd bit set
> indicates  transmission error */
> anich_tx(temp_priv->anich_skbuff, dev);
>
>
> if(interrupt_value & 0x0001)   /* 0th bit set
> indicates receive OK */
>
> anich_rx(dev, temp_priv->rx_packetlen,(char *) temp_priv-
> >anich_skbuff);  /*????????*/
>  Outb(0x00,ioaddr + ANICH_ISR);
>
> return;
>
>   }
>
> ANICH_ISR is defined to the corresponding ioport region offset
> address as indicated by the device data sheets
>
> thanking you
> Anish
>
>
>
>
>
>
> ---------------------------------------------------------------
> This is the programming list of the Bangalore Linux Users Group
> ---------------------------------------------------------------
>      Go to http://linux-bangalore.org for more information
>          about us, as well as our other mailing lists
>
>            Before you post to this list, please read
>     http://linux-bangalore.org/articles/smart-questions.php
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>

#1689 From: "Pandi Chandran" <ppchand@...>
Date: Sat Aug 3, 2002 5:10 am
Subject: Re: [blug-prog] code coverage tool ?
ppchand@...
Send Email Send Email
 
Hi Karthik,

  You can use GCOV tool that comes along with linux.
For profiling u can use GPROF.
You have to give some compiler options to invoke this tool.
info pages has all the information abt the tools.
Thanks,
Pandi Chandran.
--

On Fri, 02 Aug 2002 15:06:19
  karthik wrote:
>Hi,
>       Which of the C code coverage tool for linux is best ?
>Where do i get GCT for download, does it come with RH distributions.
>(I was unable to find any decent document on GCT after google search)
>I browsed through the rpm but unable to find any rpm related to GCT.
>
>Thanks
>Karthik
>
>
>
>---------------------------------------------------------------
>This is the programming list of the Bangalore Linux Users Group
>---------------------------------------------------------------
>     Go to http://linux-bangalore.org for more information
>         about us, as well as our other mailing lists
>
>           Before you post to this list, please read
>    http://linux-bangalore.org/articles/smart-questions.php
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>


Is your boss reading your email? ....Probably
Keep your messages private by using Lycos Mail.
Sign up today at http://mail.lycos.com

#1690 From: "sgk k" <sgk@...>
Date: Sat Aug 3, 2002 7:08 am
Subject: OpenGL problem.
sgk@...
Send Email Send Email
 
Hi all

   I tried to install Prospectus tool in my system. I have downloaded the source
and run configure. Configure failed with the following message.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for strerror in -lcposix... no
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for c++... c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for Cygwin environment... no
checking for mingw32 environment... no
checking how to run the C preprocessor... gcc -E
checking host system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output... /bin/sed
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking for object suffix... o
checking for executable suffix... no
checking command to parse /usr/bin/nm -B output... ok
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
checking for ANSI C header files... yes
checking OpenGL... no
checking Mesa... no
checking Mesa with pthreads... no


+++++++++++++++++++++++++++++++++++++++++++++++++++

What could be the problem. I am using Redhat 7.2 and in this OepnGL RPM I
couldn't find. But Mesa is installed .. ( Mesa-3.4.2-7 )

Regs
sgk
--
_______________________________________________
Get your free email from http://www.graffiti.net

Powered by Outblaze

#1691 From: anish iyer <anish_iyer@...>
Date: Sat Aug 3, 2002 7:51 am
Subject: Re: [blug-prog] Removing Modules
anish_iyer
Send Email Send Email
 
hi..
the problem is becuse of improper code of
init_module.. check that the MOD_INC_USE_COUNT is not
used in init or and error return value of function (
-ve return value ) is not handdled..

you wont be able to unload a module if it is being
used ( ie usage count > 0) as indicated by lsmod

--- Raghu.K@... wrote:
>
>
> Hello All,
>
> I am trying to load a module using the insmod
> command. For some reason I get a
> segmentation fault. Now the module is loaded as a
> "initializing" and if I try to
> remove it using rmmod I get "Device or resource
> busy"
>
> I have quiet a few of them now :-(
>
> [root@CVSSERVER pci_scan]# lsmod
> Module                  Size  Used by
> t                       1824   1  (initializing)
> test2                   1936   1  (initializing)
> test1                   1904   1  (initializing)
> test                    1184   1  (initializing)
> DumpReg                 1120   1  (initializing)
>
> Warm regards
> Raghu.
>
>
>
>
>
>


__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

#1692 From: "sgk k" <sgk@...>
Date: Sat Aug 3, 2002 9:09 am
Subject: Convention .. ?
sgk@...
Send Email Send Email
 
Hi all

    I am trying out KDevelop for developing some GUI based application. In the
documentation I have seen code using a convention

QApplication a( argc, argv );

QPushButton hello( "Hello world!" );
hello.resize( 100, 30 );

a.setMainWidget( &&;hello );

connect(&&;hello, SIGNAL( clicked() ), &&;a, SLOT( quit() ));

In this, connect methode has got an unusual syntax like  "&&;hello". What does
it mean. connect methode has a prototype as following

bool connect ( const QObject * sender, const char * signal, const QObject *
receiver, const char * member )

   Can any one give some help .. ?

    reg
sgk
--
_______________________________________________
Get your free email from http://www.graffiti.net

Powered by Outblaze

#1693 From: Kingsly John <listmail@...>
Date: Sat Aug 3, 2002 10:47 am
Subject: Re: [blug-prog] OpenGL problem.
linux4kingsly
Send Email Send Email
 
+++ sgk k [Sat, Aug 03, 2002 at 03:08:01PM +0800]:
> Hi all
>
>Configure failed with the following message.
> checking OpenGL... no
> checking Mesa... no
> checking Mesa with pthreads... no
>
> What could be the problem. I am using Redhat 7.2 and in this OepnGL RPM I
couldn't find. But Mesa is installed .. ( Mesa-3.4.2-7 )

You would need to install the Mesa-devel package for this to work.

or if you have a NVIDIA card and are using their binary driver you'll have to
copy the header files from /usr/share/doc into the /usr/include/ to get the
software to compile.

Kingsly

--

#1694 From: amith nambiar <voicestreams@...>
Date: Sat Aug 3, 2002 1:56 pm
Subject: server design problem ---> voicestreams@...
voicestreams@...
Send Email Send Email
 
hi  everybody !

                       i'am a student developing a voice chat and voice mail
application on linux -  i have some serious doubts about the effeciency  of the
voice mail server which i have designed . it is as below : (please note im
writing about the voice mail server)

1) As soon as a client  connects to the server - what i  did is i create a
thread using pthread_create( &thread , NULL,Handle_Connection(data), Data) ;

2) This function as it suggests takes care of all requests from the client until
the client indicates to exit - when he exits i call pthread_exit().

3) The function Handle_Connection()  calls Login_Request(), Register_Request(),
Store_Mail() ...etc accordingly as and when  requests come from the client.

4) In short each client is serviced by a seperate thread on the server .

My question is:

1) Is it efficient to create a new thread on the server to handle each client
request -it should be mentioned that i create just one thread for each client
for a session and when the client requests to log out - the thread exits .

  I would like to know your views on this design - and also be thankful for any 
suggestions for change in design .

I am using tcp for the connection  setup and tear down i know its an obvious
design flaw :-)  . so any suggestions keeping in mind this  would be helpful -
though i would also appreciate other  suggestions :-).

Thanks in advance .

best regards,

Amith Nambiar









---------------------------------
Do You Yahoo!?
Yahoo! Health - Feel better, live better

[Non-text portions of this message have been removed]

#1695 From: Ashwin N <ashwin_n@...>
Date: Sat Aug 3, 2002 6:21 pm
Subject: Re: [blug-prog] Convention .. ?
ashwin_ne
Send Email Send Email
 
Hi,

Don't worry, that's a mistake (maybe by the HTML viewer through which
you are viewing the documentation or something else).

On Sat, 2002-08-03 at 14:39, sgk k wrote:

>    I am trying out KDevelop for developing some GUI based application. In the
documentation I have seen code using a convention

> a.setMainWidget( &&;hello );

It is,
a.setMainWidget( &hello );

The other strange '&&;' characters are also just '&'. That is passing
the address value held by the pointer.


HTH

ashwin
--

  A s h w i n   ><>< http://symonds.net/~ash/ >

Until Eve arrived, this was a man's world.
		 -- Richard Armour

#1696 From: "sweetgemini_m" <sweetgemini_m@...>
Date: Sun Aug 4, 2002 5:43 am
Subject: Re: server design problem ---> voicestreams@...
sweetgemini_m
Send Email Send Email
 
hi!

normally when using a client server architecture, u use the fork()
call. the child created is use to handle new request. and using tcp
is not a brilliant idea, but u just make ur life easier.

sweetgemini_m

--- In linux-bangalore-programming@y..., amith nambiar
<voicestreams@y...> wrote:
>
> hi  everybody !
>
>                       i'am a student developing a voice chat and
voice mail application on linux -  i have some serious doubts about
the effeciency  of the voice mail server which i have designed . it
is as below : (please note im writing about the voice mail server)
>
> 1) As soon as a client  connects to the server - what i  did is i
create a thread using pthread_create( &thread , NULL,Handle_Connection
(data), Data) ;
>
> 2) This function as it suggests takes care of all requests from the
client until the client indicates to exit - when he exits i call
pthread_exit().
>
> 3) The function Handle_Connection()  calls Login_Request(),
Register_Request(), Store_Mail() ...etc accordingly as and when
requests come from the client.
>
> 4) In short each client is serviced by a seperate thread on the
server .
>
> My question is:
>
> 1) Is it efficient to create a new thread on the server to handle
each client request -it should be mentioned that i create just one
thread for each client for a session and when the client requests to
log out - the thread exits .
>
>  I would like to know your views on this design - and also be
thankful for any  suggestions for change in design .
>
> I am using tcp for the connection  setup and tear down i know its
an obvious design flaw :-)  . so any suggestions keeping in mind
this  would be helpful - though i would also appreciate other
suggestions :-).
>
> Thanks in advance .
>
> best regards,
>
> Amith Nambiar
>
>
>
>
>
>
>
>
>
> ---------------------------------
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
>
> [Non-text portions of this message have been removed]

#1697 From: "sgk k" <sgk@...>
Date: Mon Aug 5, 2002 4:18 am
Subject: Re: [blug-prog] Re: server design problem ---> voicestreams@...
sgk@...
Send Email Send Email
 
Hi

   Thread mechanism is more than sufficient to handle multiple clients 
connecting.. instead if you are going for fork, it is a performance drop since
in case of fork a seperate process space is created and later it will land up in
so many processes running ...

   There is another way to handling multiple clients using select system call. in
this case only one thread is required for listening to multiple interfaces (
socket ) ..  then once data comes in any of the socket, you can decide to handle
the data in the same thread itself or spawn another thread for processing the
data .. here life time of the thread is very very small compared to the previous
one. that way system performance can be utilised even efficiently ..

     all depends on your load and processing criticality and all . so reach at a
better design ...

reg
sgk



----- Original Message -----
From: "sweetgemini_m" <sweetgemini_m@...>
Date: Sun, 04 Aug 2002 05:43:26 -0000
To: linux-bangalore-programming@yahoogroups.com
Subject: [blug-prog] Re: server design problem --->  voicestreams@...


> hi!
>
> normally when using a client server architecture, u use the fork()
> call. the child created is use to handle new request. and using tcp
> is not a brilliant idea, but u just make ur life easier.
>
> sweetgemini_m
>
> --- In linux-bangalore-programming@y..., amith nambiar
> <voicestreams@y...> wrote:
> >
> > hi  everybody !
> >
> >                       i'am a student developing a voice chat and
> voice mail application on linux -  i have some serious doubts about
> the effeciency  of the voice mail server which i have designed . it
> is as below : (please note im writing about the voice mail server)
> >
> > 1) As soon as a client  connects to the server - what i  did is i
> create a thread using pthread_create( &thread , NULL,Handle_Connection
> (data), Data) ;
> >
> > 2) This function as it suggests takes care of all requests from the
> client until the client indicates to exit - when he exits i call
> pthread_exit().
> >
> > 3) The function Handle_Connection()  calls Login_Request(),
> Register_Request(), Store_Mail() ...etc accordingly as and when
> requests come from the client.
> >
> > 4) In short each client is serviced by a seperate thread on the
> server .
> >
> > My question is:
> >
> > 1) Is it efficient to create a new thread on the server to handle
> each client request -it should be mentioned that i create just one
> thread for each client for a session and when the client requests to
> log out - the thread exits .
> >
> >  I would like to know your views on this design - and also be
> thankful for any  suggestions for change in design .
> >
> > I am using tcp for the connection  setup and tear down i know its
> an obvious design flaw :-)  . so any suggestions keeping in mind
> this  would be helpful - though i would also appreciate other
> suggestions :-).
> >
> > Thanks in advance .
> >
> > best regards,
> >
> > Amith Nambiar
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > ---------------------------------
> > Do You Yahoo!?
> > Yahoo! Health - Feel better, live better
> >
> > [Non-text portions of this message have been removed]
>
>
>
> ---------------------------------------------------------------
> This is the programming list of the Bangalore Linux Users Group
> ---------------------------------------------------------------
>      Go to http://linux-bangalore.org for more information
>          about us, as well as our other mailing lists
>
>            Before you post to this list, please read
>     http://linux-bangalore.org/articles/smart-questions.php
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>

--
_______________________________________________
Get your free email from http://www.graffiti.net

Powered by Outblaze

#1698 From: "sgk k" <sgk@...>
Date: Mon Aug 5, 2002 4:24 am
Subject: ## New version documents
sgk@...
Send Email Send Email
 
Hi all

    I am using KDevelop 2.0 but all supporting documents which have come along
with the tool, like user manual, programmer's manual, tutorials etc are for the
older version. Can any one help me getting the latest documents .. ? even in
KDEvelop.org site, older version documents only is available ...  Any books
available in Bangalore market also will do ..


thanks in adv
sgk


----- Original Message -----
From: Ashwin N <ashwin_n@...>
Date: 03 Aug 2002 23:51:52 +0530
To: blug-prog <linux-bangalore-programming@yahoogroups.com>
Subject: Re: [blug-prog] Convention .. ?


> Hi,
>
> Don't worry, that's a mistake (maybe by the HTML viewer through which
> you are viewing the documentation or something else).
>
> On Sat, 2002-08-03 at 14:39, sgk k wrote:
>
> >    I am trying out KDevelop for developing some GUI based application. In
the documentation I have seen code using a convention
>
> > a.setMainWidget( &&;hello );
>
> It is,
> a.setMainWidget( &hello );
>
> The other strange '&&;' characters are also just '&'. That is passing
> the address value held by the pointer.
>
>
> HTH
>
> ashwin
> --
>
>  A s h w i n   ><>< http://symonds.net/~ash/ >
>
> Until Eve arrived, this was a man's world.
> 	 -- Richard Armour
>
>
>
> ---------------------------------------------------------------
> This is the programming list of the Bangalore Linux Users Group
> ---------------------------------------------------------------
>      Go to http://linux-bangalore.org for more information
>          about us, as well as our other mailing lists
>
>            Before you post to this list, please read
>     http://linux-bangalore.org/articles/smart-questions.php
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>

--
_______________________________________________
Get your free email from http://www.graffiti.net

Powered by Outblaze

#1699 From: Atul Chitnis <achitnis@...>
Date: Mon Aug 5, 2002 6:15 am
Subject: Memory leaks and other evils
achitnis
Send Email Send Email
 
An article by BLUG member Madhu M. Kurup (for some reason he describes
himself as a "former member", and still refers to us as "ILUG-Bangalore" -
a term that died almost 2 years ago):

http://www.linuxgazette.com/issue81/kurup.html

Quote:

"The intent of this article is to provide an understanding of memory leak
detection and profiling tools currently available. It also aims at
providing you with enough information to be able to make a choice between
the different tools for your needs."

Atul

--
-------------------------------------------
Atul Chitnis       | achitnis@...
Exocore Consulting | http://www.exocore.com
Bangalore, India   | +91 (80) 344-0397
-------------------------------------------

#1700 From: kirtim@...
Date: Mon Aug 5, 2002 9:43 am
Subject: RE: [blug-prog] Re: server design problem ---> voicestreams@...
kirtim@...
Send Email Send Email
 
One more approach ...

Like in Apache server..

U can go for connection pooling.
i.e create say 50 processes (not threads in case of apache) in the beginning
Let each of them service one client at a time if the process is idle
Each process will not exit if client servicing is over....they will wait for
next request to come....
This connection pool can be of processes ot threads..

r_
kirti



Hi

   Thread mechanism is more than sufficient to handle multiple clients
connecting.. instead if you are going for fork, it is a performance drop
since in case of fork a seperate process space is created and later it will
land up in so many processes running ...

   There is another way to handling multiple clients using select system call.
in this case only one thread is required for listening to multiple interfaces
( socket ) ..  then once data comes in any of the socket, you can decide to
handle the data in the same thread itself or spawn another thread for
processing the data .. here life time of the thread is very very small
compared to the previous one. that way system performance can be utilised
even efficiently ..

     all depends on your load and processing criticality and all . so reach at
a better design ...

reg
sgk



*********************************************************
Disclaimer

This message (including any attachments) contains
confidential information intended for a specific
individual and purpose, and is protected by law.
If you are not the intended recipient, you should
delete this message and are hereby notified that
any disclosure, copying, or distribution of this
message, or the taking of any action based on it,
is strictly prohibited.

*********************************************************
Visit us at http://www.mahindrabt.com

#1701 From: "anish_iyer" <anish_iyer@...>
Date: Tue Aug 6, 2002 11:51 am
Subject: configuring a PCI device
anish_iyer
Send Email Send Email
 
hello BLUG
please suggest how to onfigure a PCI device in a device driver .The
pci.h libarary has pci_sca_device pci_drv_register  and unregister
functions but i coudnt find the deatils abt the the use of these
functions.
The only book on linux device drivr Alasandro Rubini doesnt sppek
much abt it either

Thanking you
anish

#1702 From: "sgk k" <sgk@...>
Date: Tue Aug 6, 2002 12:56 pm
Subject: loading dynamic lybrary
sgk@...
Send Email Send Email
 
hi all

   is there any API provided in Linux to load a shared library at run time ( some
thing similar to shl_load in hp-ux )..

reg
sgk
--
_______________________________________________
Get your free email from http://www.graffiti.net

Powered by Outblaze

#1703 From: "Aneesh Kumar K.V" <aneesh.kumar@...>
Date: Tue Aug 6, 2002 2:37 pm
Subject: Re: [blug-prog] loading dynamic lybrary
kvaneesh
Send Email Send Email
 
man dlopen and dlsym


-aneesh


>On Tue, 2002-08-06 at 18:26, sgk k wrote: hi all
>
> is there any API provided in Linux to load a shared library at run
>time ( some thing similar to shl_load in hp-ux )..
>
>reg
>sgk
>--
_

#1704 From: Pallav Nawani <pallav@...>
Date: Wed Aug 7, 2002 4:55 am
Subject: Re: [blug-prog] configuring a PCI device
pallavnawani
Send Email Send Email
 
Hi,

what about reading the source code for some PCI drivers?


--

regards,
Pallav.

_______________________________________________________________________
To understand a program you must become both the machine and the program.
_________________________________________________________________
| 	                                      	 |
|Pallav Nawani                    			 |
|Sasken Communication Technologies Ltd. 		 |
|Domlur, Bangalore. 				 |
|Personal Web Page: http://members.dencity.com/pallavnawani |
|_______________________________________________________________|

#1705 From: Shobhit Kumar <shobhit.kumar@...>
Date: Wed Aug 7, 2002 5:08 am
Subject: Re: [blug-prog] loading dynamic lybrary
shobhit.kumar@...
Send Email Send Email
 
Hi,

have a look at the following link

http://www.tldp.org/HOWTO/Program-Library-HOWTO/dl-libraries.html

shobhit





sgk k wrote:

>
>
> hi all
>
>   is there any API provided in Linux to load a shared library at run
> time ( some thing similar to shl_load in hp-ux )..
>
> reg
> sgk
> --
> _______________________________________________
> Get your free email from http://www.graffiti.net
>
> Powered by Outblaze
>
> ------------------------ Yahoo! Groups Sponsor
>
> ---------------------------------------------------------------
> This is the programming list of the Bangalore Linux Users Group
> ---------------------------------------------------------------
>      Go to http://linux-bangalore.org for more information
>          about us, as well as our other mailing lists
>
>            Before you post to this list, please read
>     http://linux-bangalore.org/articles/smart-questions.php
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/

#1706 From: "sgk k" <sgk@...>
Date: Wed Aug 7, 2002 7:04 am
Subject: Considering a new GUI mechanism
sgk@...
Send Email Send Email
 
Hi all

    I am using RH7.2 in my desktop. One of the most common problem I am facing is
with GUI. My Mozilla browser crashed many times ( more than IE.. ) so as to
loose all the navigated information. Here good thing is that I didn't have to
restart the system .. just had to kill the application and start a fresh one.
The point is that stability/performance of GUI system in Linux ( most UNIX like
systems ) are not at all apreciable ...  this is one main problem in deploying
the OS in home PCs I feel .. So for desktop kind of environment - where all
facilities/flexibility provided by X system is not required - , why can't we
think about a different stable GUI system.

reg
sgk
--
_______________________________________________
Get your free email from http://www.graffiti.net

Powered by Outblaze

#1707 From: Pallav Nawani <pallav@...>
Date: Wed Aug 7, 2002 9:00 am
Subject: Re: [blug-prog] Considering a new GUI mechanism
pallavnawani
Send Email Send Email
 
On Wed, 7 Aug 2002, sgk k wrote:

> Hi all
>
>    I am using RH7.2 in my desktop. One of the most common problem I am facing
is with
> GUI. My Mozilla browser crashed many times ( more than

What is the version of mozilla you are using? Mostlikely, It may
be a development version and therefore buggy. Try the latest
stable release version of mozilla. It is rock solid.

>and start a fresh one. The point is that stability/performance
>of GUI system in Linux ( most UNIX like systems ) are not at all apreciable ...

Mozilla might have crashed from reasons other than GUI, and in
any case xfree86 is quite bug free. In most of the cases, the
application crashes are not the fault of X
implementations, neither they are the fault of the widget system
used - they are due to some bugs in the application itself.

> X system is not required - , why can't we think about a
>different stable GUI system.

Xwindows is quite flexible. Granted, it may be a
little slow, but that has been a non issue for some time now.



--

regards,
Pallav.

_______________________________________________________________________
To understand a program you must become both the machine and the program.
_________________________________________________________________
| 	                                      	 |
|Pallav Nawani                    			 |
|Sasken Communication Technologies Ltd. 		 |
|Domlur, Bangalore. 				 |
|Personal Web Page: http://members.dencity.com/pallavnawani |
|_______________________________________________________________|

#1708 From: "sgk k" <sgk@...>
Date: Wed Aug 7, 2002 10:00 am
Subject: Re: [blug-prog] Considering a new GUI mechanism
sgk@...
Send Email Send Email
 
Hi

   I am using Mozilla 0.9.2.1. This is the one came with RH7.2 install CD. Is it
stable one.. ?

reg
s



----- Original Message -----
From: Pallav Nawani <pallav@...>
Date: Wed, 7 Aug 2002 14:30:20 +0530 (IST)
To: linux-bangalore-programming@yahoogroups.com
Subject: Re: [blug-prog] Considering a new GUI mechanism


> On Wed, 7 Aug 2002, sgk k wrote:
>
> > Hi all
> >
> >    I am using RH7.2 in my desktop. One of the most common problem I am
facing is with
> > GUI. My Mozilla browser crashed many times ( more than
>
> What is the version of mozilla you are using? Mostlikely, It may
> be a development version and therefore buggy. Try the latest
> stable release version of mozilla. It is rock solid.
>
> >and start a fresh one. The point is that stability/performance
> >of GUI system in Linux ( most UNIX like systems ) are not at all apreciable
...
>
> Mozilla might have crashed from reasons other than GUI, and in
> any case xfree86 is quite bug free. In most of the cases, the
> application crashes are not the fault of X
> implementations, neither they are the fault of the widget system
> used - they are due to some bugs in the application itself.
>
> > X system is not required - , why can't we think about a
> >different stable GUI system.
>
> Xwindows is quite flexible. Granted, it may be a
> little slow, but that has been a non issue for some time now.
>
>
>
> --
>
> regards,
> Pallav.
>
> _______________________________________________________________________
> To understand a program you must become both the machine and the program.
> _________________________________________________________________
> | 	                                      	 |
> |Pallav Nawani                    			 |
> |Sasken Communication Technologies Ltd. 		 |
> |Domlur, Bangalore. 				 |
> |Personal Web Page: http://members.dencity.com/pallavnawani |
> |_______________________________________________________________|
>
>
>
>
> ---------------------------------------------------------------
> This is the programming list of the Bangalore Linux Users Group
> ---------------------------------------------------------------
>      Go to http://linux-bangalore.org for more information
>          about us, as well as our other mailing lists
>
>            Before you post to this list, please read
>     http://linux-bangalore.org/articles/smart-questions.php
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>

--
_______________________________________________
Get your free email from http://www.graffiti.net

Powered by Outblaze

#1709 From: Atul Chitnis <achitnis@...>
Date: Wed Aug 7, 2002 10:06 am
Subject: Re: [blug-prog] Considering a new GUI mechanism
achitnis
Send Email Send Email
 
On Wed, 7 Aug 2002, sgk k wrote:

>   I am using Mozilla 0.9.2.1. This is the one came with RH7.2 install
> CD. Is it stable one.. ?

Woah! Mozilla is about to release version 1.1, 1.0 came out months ago -
0.9.2.1 is totally ancient and unstable.

Atul

#1710 From: Kingsly John <listmail@...>
Date: Wed Aug 7, 2002 10:35 am
Subject: Re: [blug-prog] Considering a new GUI mechanism
linux4kingsly
Send Email Send Email
 
+++ Pallav Nawani [Wed, Aug 07, 2002 at 02:30:20PM +0530]:
> On Wed, 7 Aug 2002, sgk k wrote:
>
> > Hi all
> >
> >    I am using RH7.2 in my desktop. One of the most common problem I am
facing is with
> > GUI. My Mozilla browser crashed many times ( more than
>
> What is the version of mozilla you are using? Mostlikely, It may
> be a development version and therefore buggy. Try the latest
> stable release version of mozilla. It is rock solid.


1.1 beta is better... faster rendering and the downloader works! and it has
Full-Screen mode!

> > X system is not required - , why can't we think about a
> >different stable GUI system.
>
> Xwindows is quite flexible. Granted, it may be a
> little slow, but that has been a non issue for some time now.

Most importantly.. the entire application base would have to start from scratch!

Kingsly


--

#1711 From: Raghu.K@...
Date: Thu Aug 8, 2002 2:30 am
Subject: DMA Memory allocation in PCI
Raghu.K@...
Send Email Send Email
 
Hello All,
I work in Linux PPC kernel. And I have an issue with a  "eepro100" network
driver that manages Intel 82559 NIC. It uses one function called
"pci_alloc_consistent" to allocate memory for a DMA Buffer. This memory gets
allocated at some 0xc000**** address.
But this depends upon the total amount of RAM in the system. I have board that
have 128MB, 256MB and 512MB of RAM.

This same allocation goes to locations 0xd* * * * * * * * , when the board is
detected to have RAM more than 128 MB. The result of this is the Network self
test fails.

Is there a way by which I can fix the DMA allocation area so specify it within a
range ??

Warm Regards,
Raghu.

#1712 From: "sgk k" <sgk@...>
Date: Thu Aug 8, 2002 9:11 am
Subject: Re: [blug-prog] Considering a new GUI mechanism
sgk@...
Send Email Send Email
 
Hi all

   I could download the same and it works fine now ...  cool ..

    regarding the GUI mechanism what I would like to say is, if at all it is not
performing well compared to the OTHER OSes, people will think twice to take it
as the first choice .. as far as a normal home user is concerned, performance in
terms of speed and good looks matters a lot ...  I do agree with the fact that
the whole application frame work may have to be changed if we need to go for a
new gui mechanism .. but still if we can find out - invent - a methode using
wich the older version and the "new" versions will work together, it will
revolutionise the picture of computing like any thing ...  that is where OTHER
operating systems are looking at .. to make "browsing" easy and good look and
feel experience ...  lay man doesn't care whether OS carries a message or not
... but if we can provide some thing which can deliver some thing more what
OTHERs provide.. it will be accepted like any thing ...

luv sgk

----- Original Message -----
From: Kingsly John <listmail@...>
Date: Wed, 7 Aug 2002 16:05:45 +0530
To: linux-bangalore-programming@yahoogroups.com
Subject: Re: [blug-prog] Considering a new GUI mechanism


> +++ Pallav Nawani [Wed, Aug 07, 2002 at 02:30:20PM +0530]:
> > On Wed, 7 Aug 2002, sgk k wrote:
> >
> > > Hi all
> > >
> > >    I am using RH7.2 in my desktop. One of the most common problem I am
facing is with
> > > GUI. My Mozilla browser crashed many times ( more than
> >
> > What is the version of mozilla you are using? Mostlikely, It may
> > be a development version and therefore buggy. Try the latest
> > stable release version of mozilla. It is rock solid.
>
>
> 1.1 beta is better... faster rendering and the downloader works! and it has
Full-Screen mode!
>
> > > X system is not required - , why can't we think about a
> > >different stable GUI system.
> >
> > Xwindows is quite flexible. Granted, it may be a
> > little slow, but that has been a non issue for some time now.
>
> Most importantly.. the entire application base would have to start from
scratch!
>
> Kingsly
>
>
> --
>
>
>
> ---------------------------------------------------------------
> This is the programming list of the Bangalore Linux Users Group
> ---------------------------------------------------------------
>      Go to http://linux-bangalore.org for more information
>          about us, as well as our other mailing lists
>
>            Before you post to this list, please read
>     http://linux-bangalore.org/articles/smart-questions.php
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>

--
_______________________________________________
Get your free email from http://www.graffiti.net

Powered by Outblaze

Messages 1683 - 1712 of 7680   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help