Lines Matching refs:bs
11 uint32_t svcmgr_lookup(struct binder_state *bs, uint32_t target, const char *name) in svcmgr_lookup() argument
22 if (binder_call(bs, &msg, &reply, target, SVC_MGR_CHECK_SERVICE)) in svcmgr_lookup()
28 binder_acquire(bs, handle); in svcmgr_lookup()
30 binder_done(bs, &msg, &reply); in svcmgr_lookup()
35 int svcmgr_publish(struct binder_state *bs, uint32_t target, const char *name, void *ptr) in svcmgr_publish() argument
47 if (binder_call(bs, &msg, &reply, target, SVC_MGR_ADD_SERVICE)) in svcmgr_publish()
52 binder_done(bs, &msg, &reply); in svcmgr_publish()
61 struct binder_state *bs; in main() local
65 bs = binder_open(128*1024); in main()
66 if (!bs) { in main()
75 handle = svcmgr_lookup(bs, svcmgr, "alt_svc_mgr"); in main()
87 handle = svcmgr_lookup(bs, svcmgr, argv[1]); in main()
96 svcmgr_publish(bs, svcmgr, argv[1], &token); in main()