Changeset 9dae191e in mainline for uspace/lib/c/generic/sysinfo.c


Ignore:
Timestamp:
2010-04-18T00:24:40Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a80687e5
Parents:
d8e3467
Message:

sysinfo API cleanup

  • better support for generated subtrees
  • synchronization
  • memory management (generated items cleanup)
  • simplier sysinfo_dump()

remove separate statistical syscalls, replace with virtual sysinfo items (some functionality is still missing)

  • naming consolidation
  • cleaner API
  • proper synchronization

minor renames

  • zone_print_list() → zones_print_list()
  • zone_busy_and_free() → zones_stats()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/sysinfo.c

    rd8e3467 r9dae191e  
    5858}
    5959
    60 extern void *sysinfo_get_data(const char *path, size_t *size)
     60void *sysinfo_get_data(const char *path, size_t *size)
    6161{
    6262        while (true) {
     
    7474                        return data;
    7575               
     76                free(data);
     77               
    7678                if (ret != ENOMEM)
    7779                        return NULL;
    78                
    79                 free(data);
    8080        }
    8181}
Note: See TracChangeset for help on using the changeset viewer.