lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [task #10139] Prefer statically allocated memory


From: Simon Goldschmidt
Subject: [lwip-devel] [task #10139] Prefer statically allocated memory
Date: Mon, 01 Feb 2010 20:27:51 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.2) Gecko/20100115 Firefox/3.6

URL:
  <http://savannah.nongnu.org/task/?10139>

                 Summary: Prefer statically allocated memory
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: goldsimon
            Submitted on: Mo 01 Feb 2010 20:27:50 GMT
                Category: None
         Should Start On: Mo 01 Feb 2010 00:00:00 GMT
   Should be Finished on: Mo 01 Feb 2010 00:00:00 GMT
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
        Percent Complete: 0%
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
                  Effort: 0.00

    _______________________________________________________

Details:

I'd like to use statically allocated memory in various places throughout the
stack instead of dynamically allocating:

- dhcp_start/autoip_start: take a corresponding struct pointer as argument to
prevent mem_malloc (this leaves it open to use mem_malloc to the caller)
- semaphores/mboxes: take a pointer as argument for creating the sem/mbox
instead of returning it. This way, defining sys_sem_t/sys_mbox_t
appropriately, both allocating the sem/mbox dynamically and statically could
be achieved (see Jifl's comment in another thread:
https://savannah.nongnu.org/task/?7212#comment4 - by now, I prefer that over
the old functions :)

There might be other places where changes into this direction might fit, but
I think it's a generic question of which approach we want lwIP to take, which
is why I'm posting this here.

Any comments are welcome!




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/task/?10139>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]