1. 20 Nov, 2002 8 commits
    • Patrick Mochel's avatar
      Merge osdl.org:/home/mochel/src/kernel/devel/linux-2.5-virgin · 95ca3c33
      Patrick Mochel authored
      into osdl.org:/home/mochel/src/kernel/devel/linux-2.5-kobject
      95ca3c33
    • Patrick Mochel's avatar
      Merge osdl.org:/home/mochel/src/kernel/devel/linux-2.5-virgin · 3c31f49e
      Patrick Mochel authored
      into osdl.org:/home/mochel/src/kernel/devel/linux-2.5-kobject
      3c31f49e
    • Ivan Kokshaysky's avatar
      [PATCH] PCI setup: misc cleanups and fixes · 37256d28
      Ivan Kokshaysky authored
      - Use PCI_BUS_NUM_RESOURCES instead of hardcoded `4' in
        pci_find_parent_resource;
      - clean up pci_claim_resource() and make it a bit more informative
        on errors;
      - pdev_sort_resources() must be __devinit, as it's called from
        pbus_assign_resources_sorted(), which is __devinit now;
      - fix one remaining dev->name in debugging printk.
      37256d28
    • Ivan Kokshaysky's avatar
      [PATCH] PCI: transparent bridge detection fix · d613ff0a
      Ivan Kokshaysky authored
      The detection of subtractive decoding bridges is broken: `class' variable
      doesn't contain ProgIf byte at this point, I should check `dev->class'
      instead.
      
      This fixes resource allocation problems on certain docking stations.
      d613ff0a
    • Andries E. Brouwer's avatar
      [PATCH] *_mknod prototype · 72c85a12
      Andries E. Brouwer authored
      The dev_t argument of sys_mknod is passed to vfs_mknod, and is then cast
      to int when foo_mknod is called, and is subsequently very often cast
      back to dev_t.  (For example, minix_mknod() calls minix_set_inode() that
      takes a dev_t.)
      
      This is a cleanup that avoids this back-and-forth casting by giving
      foo_mknod a prototype with dev_t.  In most cases now the dev_t is
      transmitted untouched until init_special_inode.
      
      It also makes the two routines hugetlbfs_get_inode() and
      shmem_get_inode() static.
      72c85a12
    • Rusty Russell's avatar
      [PATCH] Module length calculation fix and module with no init fix · 41872921
      Rusty Russell authored
      Fixes miscalculation of required module size due to alignment issues of
      first section after common, and also doesn't think that no init section
      is an allocation failure.
      41872921
    • Rusty Russell's avatar
      [PATCH] module device table restoration · 5c0f111c
      Rusty Russell authored
      Patch from Adam Richter.  I have a nicer solution based on aliases, but
      it requires coordination with USB, PCI and PCMCIA maintainers, which is
      taking time.
      
      This restores the old code in the meantime: one week without this is too
      long for people who need it.
      5c0f111c
    • Linus Torvalds's avatar
      Merge bk://ppc.bkbits.net/for-linus-ppc · 8f79cdb7
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      8f79cdb7
  2. 21 Nov, 2002 4 commits
  3. 20 Nov, 2002 3 commits
  4. 19 Nov, 2002 24 commits
  5. 18 Nov, 2002 1 commit
    • Patrick Mochel's avatar
      kobject - expose backend helpers to registration interface. · 0d3b7ccf
      Patrick Mochel authored
      The interface should now be more sane and protect against races better. 
      
      kobject_register() was split into two helpers: kobject_init() and kobject_add().
      It calls both consecutively, though both are also exposed for use by users
      that want to use the objects w/o adding them to the object hierarchy. 
      
      kobject_unregister() was made simply a wrapper for kobject_del() and 
      kobject_put(), which are both also exposed. The guts of kobject_put() was
      moved into kobject_cleanup(), which it calls when the reference count hits
      0. (This was done for clarity).
      
      The infrastructure now takes a lot in kobject_get() and kobject_put() when
      checking and modifying the objects' reference counts. This was an obvious
      one that hsould have been fixed long ago. 
      
      kobject_add() increments the refcount of the object, which is decremented
      when kobject_del() is called. This guarantees that the object's memory
      cannot be freed if it has been added to the hierarchy, and kobject_del() 
      has not been called on it. 
      
      kobject_init() is now the function that increments the refcount on the 
      object's subsystem, which is decremented only after its release() method
      has been called for the object in kobject_cleanup(). 
      
      The documentation has been updated to reflect these changes. 
      0d3b7ccf