Lines Matching refs:bh

1990 get_hook(brand_handle_t bh, char *cmd, size_t len, int (*bp)(brand_handle_t,
1996 if (bp(bh, zonename, zonepath, cmd + EXEC_LEN, len - EXEC_LEN) != 0)
2011 brand_handle_t bh = NULL;
2027 if ((bh = brand_open(target_brand)) == NULL) {
2038 err = get_hook(bh, cmdbuf, sizeof (cmdbuf), brand_get_verify_adm,
2040 brand_close(bh);
2926 brand_handle_t bh = NULL;
2950 if ((bh = brand_open(target_brand)) == NULL) {
2955 if (get_hook(bh, cmdbuf, sizeof (cmdbuf), brand_get_install,
2958 brand_close(bh);
2962 if (get_hook(bh, postcmdbuf, sizeof (postcmdbuf), brand_get_postinstall,
2966 brand_close(bh);
2978 if (brand_get_installopts(bh, opts + strlen(opts),
2982 brand_close(bh);
2986 brand_close(bh);
3388 brand_handle_t bh;
3405 if ((bh = brand_open(target_brand)) == NULL) {
3409 brand_close(bh);
3562 brand_handle_t bh = NULL;
3694 if ((bh = brand_open(target_brand)) == NULL) {
3700 if (get_hook(bh, cmdbuf, sizeof (cmdbuf), brand_get_clone, target_zone,
3703 brand_close(bh);
3708 if (get_hook(bh, postcmdbuf, sizeof (postcmdbuf), brand_get_postclone,
3712 brand_close(bh);
3717 if (get_hook(bh, presnapbuf, sizeof (presnapbuf), brand_get_presnap,
3721 brand_close(bh);
3726 if (get_hook(bh, postsnapbuf, sizeof (postsnapbuf), brand_get_postsnap,
3730 brand_close(bh);
3735 if (get_hook(bh, validsnapbuf, sizeof (validsnapbuf),
3739 brand_close(bh);
3743 brand_close(bh);
4301 brand_handle_t bh = NULL;
4364 if ((bh = brand_open(target_brand)) == NULL) {
4369 if (get_hook(bh, cmdbuf, sizeof (cmdbuf), brand_get_detach, target_zone,
4372 brand_close(bh);
4376 if (get_hook(bh, precmdbuf, sizeof (precmdbuf), brand_get_predetach,
4380 brand_close(bh);
4383 brand_close(bh);
4644 brand_handle_t bh = NULL;
4746 if ((bh = brand_open(target_brand)) == NULL) {
4751 if (get_hook(bh, cmdbuf, sizeof (cmdbuf), brand_get_attach, target_zone,
4754 brand_close(bh);
4758 if (get_hook(bh, postcmdbuf, sizeof (postcmdbuf), brand_get_postattach,
4762 brand_close(bh);
4765 brand_close(bh);
4908 brand_handle_t bh = NULL;
4974 if ((bh = brand_open(target_brand)) == NULL) {
4979 if (get_hook(bh, cmdbuf, sizeof (cmdbuf), brand_get_uninstall,
4983 brand_close(bh);
4987 if (get_hook(bh, precmdbuf, sizeof (precmdbuf), brand_get_preuninstall,
4991 brand_close(bh);
4994 brand_close(bh);