mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
domains: use struct domain as argument
This commit is contained in:
parent
768f6373eb
commit
837b7203f0
@ -248,9 +248,8 @@ pr_init(struct protosw *pr)
|
||||
* XXX can't fail at this time.
|
||||
*/
|
||||
void
|
||||
domain_init(void *arg)
|
||||
domain_init(struct domain *dp)
|
||||
{
|
||||
struct domain *dp = arg;
|
||||
struct protosw *pr;
|
||||
int flags;
|
||||
|
||||
@ -283,11 +282,9 @@ domain_init(void *arg)
|
||||
* XXX can't fail at this time.
|
||||
*/
|
||||
void
|
||||
domain_add(void *data)
|
||||
domain_add(struct domain *dp)
|
||||
{
|
||||
struct domain *dp;
|
||||
|
||||
dp = (struct domain *)data;
|
||||
if (dp->dom_probe != NULL && (*dp->dom_probe)() != 0)
|
||||
return;
|
||||
atomic_set_rel_int(&dp->dom_flags, DOMF_SUPPORTED);
|
||||
@ -307,9 +304,8 @@ domain_add(void *data)
|
||||
}
|
||||
|
||||
void
|
||||
domain_remove(void *data)
|
||||
domain_remove(struct domain *dp)
|
||||
{
|
||||
struct domain *dp = (struct domain *)data;
|
||||
|
||||
if ((dp->dom_flags & DOMF_UNLOADABLE) == 0)
|
||||
return;
|
||||
|
@ -77,9 +77,9 @@ struct domain {
|
||||
#ifdef _KERNEL
|
||||
extern int domain_init_status;
|
||||
extern struct domain *domains;
|
||||
void domain_add(void *);
|
||||
void domain_remove(void *);
|
||||
void domain_init(void *);
|
||||
void domain_add(struct domain *);
|
||||
void domain_remove(struct domain *);
|
||||
void domain_init(struct domain *);
|
||||
#ifdef VIMAGE
|
||||
void vnet_domain_init(void *);
|
||||
void vnet_domain_uninit(void *);
|
||||
|
Loading…
Reference in New Issue
Block a user