lkml.org 
[lkml]   [2000]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] 2.3.99-pre3-3: dev_alloc_name
I wrote:
>
> Here's the story:
>
> struct thing
> {
> char *s;
> int i;
> };
>
> struct thing t1 = { "foo", 4 };
> struct thing t2 = { "foo", 4 };

Change the declaration to

struct thing
{
char s[16];
int i;
};

and the strings are separated and placed in .data, just as we want.

Then it's just a matter of running all over the kernel enforcing an
upper limit on the length of net device names :-(

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

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.229 / U:1.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site