Hi,



if you are developing an IPC server, then you should read on.




With this commit:




commit ca48672c28630656df768752aa9bc313ce9ad11c (HEAD -> master, origin/
master, origin/HEAD)
Author: Jiri Svoboda <jiri@wiwaxia>
Date:   Fri Jun 20 17:18:27 2025 +0200

    loc_service_register() needs to take a port ID argument.

you now need to pass an extra argument to loc_service_register() - the port
ID of the port that you are registering. You received this ID from async_
create_port() or, if you are using the fallback port, then pass the constant
"fallback_port_id".




This change is necessary so that the system can make a connection between 
the service being registered and the port on which the service is being 
provided. Note that this change does not actually do anything yet (coming 
soon), this is just the preparation.




Also note that since this integration, if you are implementing a service 
that understands multiple interfaces/protocols, you must first create the 
port with async_create_port() (and you pass this function the type of the 
first interface), then add the additional interfaces using async_port_create
_interface(). [Previously one could get away with multiple calls to async_
create_port() as all ports were accessible via all registered services].




This is part of a larger effort to make it possible to improve our ability
to implement IPC services in libraries without (possible) conflicts, making
it possible for an IPC connection to refer to a service (as opposed to a 
server) etc.




If you have any questions, please let me know.




Cheers,

Jiri
_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/listinfo/helenos-devel

Reply via email to