NetBSD/common/include/prop
thorpej 6cf1ffe998 Alter the protocol impemented by prop_kern to allow for bi-directional
plist-based messages and to eliminate looping previously required to
receive a plist from the kernel:

- prop_dictionary_copyin_ioctl() and prop_dictionary_copyout_ioctl()
  now take the cmd argument rather than the file open flag.  The
  read-ness or write-ness of an ioctl command is checked by these
  routines to ensure that information is being passed to/from the
  userland component properly.

- prop_dictionary_copyout_ioctl() now allocates the memory for the
  XML plist on behalf of the userland component by way of uvm_mmap().
  The XML plist is copied out to the newly-mapped anonymous region,
  and the pointer returned via the plistref.

- prop_dictionary_recv_ioctl() is responsible for munmap()'ing the
  region after parsing the XML plist into internal represenatation.

- A new prop_dictionary_sendrecv_ioctl() is added, allowing user space
  code to send a dictionary to the kernel and receive one back as a
  reply.


Update users of prop_kern for the API changes (Bluetooth).

This constitutes an ABI / protocol change -- but this will also be put
into NetBSD 4.0 so that the first proplib release will implement the new
scheme.
2006-09-22 04:20:23 +00:00
..
Makefile Several changes to proplib: 2006-08-21 04:13:28 +00:00
prop_array.h Several changes to proplib: 2006-08-21 04:13:28 +00:00
prop_bool.h - Add prop_array_equals(), prop_dictionary_equals(), and 2006-05-18 03:05:19 +00:00
prop_data.h
prop_dictionary.h Alter the protocol impemented by prop_kern to allow for bi-directional 2006-09-22 04:20:23 +00:00
prop_ingest.h Several changes to proplib: 2006-08-21 04:13:28 +00:00
prop_number.h don't include stdint.h for _STANDALONE. 2006-07-12 13:54:55 +00:00
prop_object.h Several changes to proplib: 2006-08-21 04:13:28 +00:00
prop_string.h
proplib.h Alter the protocol impemented by prop_kern to allow for bi-directional 2006-09-22 04:20:23 +00:00