tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: UVM typedef struct




On Aug 12, 2009, at 5:07 PM, Tonnerre LOMBARD wrote:

Salut,

On Wed, Aug 12, 2009 at 10:17:38PM +0100, Iain Hibbert wrote:
Oh, you can work that something like this

I mean:

typedef struct {
        ...
        blubb_t blubbs[MAX_BLUBBS];
        ...
} bla_t;

typedef struct {
        ...
        bla_t owner;
        ...
} blubb_t;

                                Tonnerre

Typedefs have nothing to do with that. You cannot create structures like this in C since in this setup you need to know the size which you can't define up front.

James



Home | Main Index | Thread Index | Old Index