mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Doubt
@ 2004-06-28 18:43 so usp
  2004-06-28 18:59 ` Doubt Esteve Espuña Sargatal
  0 siblings, 1 reply; 6+ messages in thread
From: so usp @ 2004-06-28 18:43 UTC (permalink / raw)
  To: linux-kernel

Hi...

i would like to know how to copy a string such as
"Test" to a char vector (char buffer[256]) in kernel
mode.

Thanks,
Luis Henrique.

______________________________________________________________________

Yahoo! Mail - agora com 100MB de espaço, anti-spam e antivírus grátis!
http://br.info.mail.yahoo.com/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Doubt
  2004-06-28 18:43 Doubt so usp
@ 2004-06-28 18:59 ` Esteve Espuña Sargatal
  2004-06-28 19:58   ` Doubt Christophe Saout
  0 siblings, 1 reply; 6+ messages in thread
From: Esteve Espuña Sargatal @ 2004-06-28 18:59 UTC (permalink / raw)
  To: linux-kernel

Example from  arch/i386/kernel/kgdb_stub.c:


#include <asm/string.h>         /* for strcpy */

static char remcomOutBuffer[BUFMAX];

strcpy(remcomOutBuffer, "OK");

Hope it's ok.

On Mon, 2004-06-28 at 20:43, so usp wrote:
> Hi...
> 
> i would like to know how to copy a string such as
> "Test" to a char vector (char buffer[256]) in kernel
> mode.
> 
> Thanks,
> Luis Henrique.
> 
> ______________________________________________________________________
> 
> Yahoo! Mail - agora com 100MB de espaço, anti-spam e antivírus grátis!
> http://br.info.mail.yahoo.com/
> -
> 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/
> 


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Doubt
  2004-06-28 18:59 ` Doubt Esteve Espuña Sargatal
@ 2004-06-28 19:58   ` Christophe Saout
  0 siblings, 0 replies; 6+ messages in thread
From: Christophe Saout @ 2004-06-28 19:58 UTC (permalink / raw)
  To: esteve; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 431 bytes --]

Am Mo, den 28.06.2004 um 20:59 Uhr +0200 schrieb Esteve Espuña Sargatal:

> #include <asm/string.h>         /* for strcpy */
> 
> static char remcomOutBuffer[BUFMAX];
> 
> strcpy(remcomOutBuffer, "OK");
> 
> Hope it's ok.

Not really. Well, this example here works, but only if you know that you
won't overflow the buffer.

strlcpy(emcomOutBuffer, "OK", BUFMAX);

(replace "OK" with the string you wish to copy)


[-- Attachment #2: Dies ist ein digital signierter Nachrichtenteil --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* doubt
@ 2004-12-29 23:52 durgam
  0 siblings, 0 replies; 6+ messages in thread
From: durgam @ 2004-12-29 23:52 UTC (permalink / raw)
  To: linux-kernel

 i  am accessing a variable from two modules . in one module iam  reading
the varible , and in another module i am updating the variable for each a
second.
in the second module i am using interruptible_sleep_on_timeout so that it
will
be wake up after one second and update the varible. but the problem i am
facing is i couldn't read the variable in the first module  for the moment
of time when the second module gets sleep. please can any one help me to
come out .

phani

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Doubt
  2004-06-25 19:14 Doubt so usp
@ 2004-06-26 14:05 ` Gard Spreemann
  0 siblings, 0 replies; 6+ messages in thread
From: Gard Spreemann @ 2004-06-26 14:05 UTC (permalink / raw)
  To: linux-kernel

On Friday 25 June 2004 21:14, so usp wrote:
> Hi Guys,
>
> I would like to know when a compiling the kernel if a
> really need to use the comand make modules_install.
> I'm asking the question because a would like to use
> the old kernel to with the new one that a create.

Do the make modules_install. The new modules will be in a separate directory 
(/lib/modules/<version>) and will not interfere with older kernels that you 
might have.

 -- Gard

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Doubt
@ 2004-06-25 19:14 so usp
  2004-06-26 14:05 ` Doubt Gard Spreemann
  0 siblings, 1 reply; 6+ messages in thread
From: so usp @ 2004-06-25 19:14 UTC (permalink / raw)
  To: linux-kernel

Hi Guys,

I would like to know when a compiling the kernel if a
really need to use the comand make modules_install.
I'm asking the question because a would like to use
the old kernel to with the new one that a create.

Luis Henrique.

______________________________________________________________________

Yahoo! Mail - agora com 100MB de espaço, anti-spam e antivírus grátis!
http://br.info.mail.yahoo.com/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-12-29 23:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-28 18:43 Doubt so usp
2004-06-28 18:59 ` Doubt Esteve Espuña Sargatal
2004-06-28 19:58   ` Doubt Christophe Saout
  -- strict thread matches above, loose matches on Subject: below --
2004-12-29 23:52 doubt durgam
2004-06-25 19:14 Doubt so usp
2004-06-26 14:05 ` Doubt Gard Spreemann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®