本文整理汇总了C++中MAC_POLICY_PERFORM_NOSLEEP函数的典型用法代码示例。如果您正苦于以下问题:C++ MAC_POLICY_PERFORM_NOSLEEP函数的具体用法?C++ MAC_POLICY_PERFORM_NOSLEEP怎么用?C++ MAC_POLICY_PERFORM_NOSLEEP使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了MAC_POLICY_PERFORM_NOSLEEP函数的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: mac_socketpeer_label_free
static void
mac_socketpeer_label_free(struct label *label)
{
MAC_POLICY_PERFORM_NOSLEEP(socketpeer_destroy_label, label);
mac_labelzone_free(label);
}
开发者ID:2asoft,项目名称:freebsd,代码行数:7,代码来源:mac_socket.c
示例2: mac_socket_newconn
void
mac_socket_newconn(struct socket *oldso, struct socket *newso)
{
MAC_POLICY_PERFORM_NOSLEEP(socket_newconn, oldso, oldso->so_label,
newso, newso->so_label);
}
开发者ID:2asoft,项目名称:freebsd,代码行数:7,代码来源:mac_socket.c
示例3: mac_sysvmsq_create
void
mac_sysvmsq_create(struct ucred *cred, struct msqid_kernel *msqkptr)
{
MAC_POLICY_PERFORM_NOSLEEP(sysvmsq_create, cred, msqkptr,
msqkptr->label);
}
开发者ID:dcui,项目名称:FreeBSD-9.3_kernel,代码行数:7,代码来源:mac_sysv_msg.c
示例4: mac_pipe_label_free
void
mac_pipe_label_free(struct label *label)
{
MAC_POLICY_PERFORM_NOSLEEP(pipe_destroy_label, label);
mac_labelzone_free(label);
}
开发者ID:FelixHaller,项目名称:libuinet,代码行数:7,代码来源:mac_pipe.c
示例5: mac_cred_copy
/*
* When a new process is created, its label must be initialized. Generally,
* this involves inheritence from the parent process, modulo possible deltas.
* This function allows that processing to take place.
*/
void
mac_cred_copy(struct ucred *src, struct ucred *dest)
{
MAC_POLICY_PERFORM_NOSLEEP(cred_copy_label, src->cr_label,
dest->cr_label);
}
开发者ID:JabirTech,项目名称:Source,代码行数:12,代码来源:mac_cred.c
示例6: mac_posixshm_create
void
mac_posixshm_create(struct ucred *cred, struct shmfd *shmfd)
{
MAC_POLICY_PERFORM_NOSLEEP(posixshm_create, cred, shmfd,
shmfd->shm_label);
}
开发者ID:2asoft,项目名称:freebsd,代码行数:7,代码来源:mac_posix_shm.c
示例7: mac_sysv_msgqueue_label_free
static void
mac_sysv_msgqueue_label_free(struct label *label)
{
MAC_POLICY_PERFORM_NOSLEEP(sysvmsq_destroy_label, label);
mac_labelzone_free(label);
}
开发者ID:dcui,项目名称:FreeBSD-9.3_kernel,代码行数:7,代码来源:mac_sysv_msg.c
示例8: mac_posixshm_label_free
static void
mac_posixshm_label_free(struct label *label)
{
MAC_POLICY_PERFORM_NOSLEEP(posixshm_destroy_label, label);
mac_labelzone_free(label);
}
开发者ID:2asoft,项目名称:freebsd,代码行数:7,代码来源:mac_posix_shm.c
示例9: mac_pipe_relabel
static void
mac_pipe_relabel(struct ucred *cred, struct pipepair *pp,
struct label *newlabel)
{
MAC_POLICY_PERFORM_NOSLEEP(pipe_relabel, cred, pp, pp->pp_label,
newlabel);
}
开发者ID:FelixHaller,项目名称:libuinet,代码行数:8,代码来源:mac_pipe.c
示例10: mac_socket_relabel
static void
mac_socket_relabel(struct ucred *cred, struct socket *so,
struct label *newlabel)
{
SOCK_LOCK_ASSERT(so);
MAC_POLICY_PERFORM_NOSLEEP(socket_relabel, cred, so, so->so_label,
newlabel);
}
开发者ID:2asoft,项目名称:freebsd,代码行数:10,代码来源:mac_socket.c
示例11: mac_socketpeer_set_from_socket
void
mac_socketpeer_set_from_socket(struct socket *oldso, struct socket *newso)
{
if (mac_policy_count == 0)
return;
MAC_POLICY_PERFORM_NOSLEEP(socketpeer_set_from_socket, oldso,
oldso->so_label, newso, newso->so_peerlabel);
}
开发者ID:2asoft,项目名称:freebsd,代码行数:10,代码来源:mac_socket.c
示例12: mac_socketpeer_set_from_mbuf
void
mac_socketpeer_set_from_mbuf(struct mbuf *m, struct socket *so)
{
struct label *label;
if (mac_policy_count == 0)
return;
label = mac_mbuf_to_label(m);
MAC_POLICY_PERFORM_NOSLEEP(socketpeer_set_from_mbuf, m, label, so,
so->so_peerlabel);
}
开发者ID:2asoft,项目名称:freebsd,代码行数:13,代码来源:mac_socket.c
示例13: mac_netinet6_nd6_send
void
mac_netinet6_nd6_send(struct ifnet *ifp, struct mbuf *m)
{
struct label *mlabel;
if (mac_policy_count == 0)
return;
mlabel = mac_mbuf_to_label(m);
MAC_POLICY_PERFORM_NOSLEEP(netinet6_nd6_send, ifp, ifp->if_label, m,
mlabel);
}
开发者ID:FelixHaller,项目名称:libuinet,代码行数:13,代码来源:mac_inet6.c
示例14: mac_ip6q_update
void
mac_ip6q_update(struct mbuf *m, struct ip6q *q6)
{
struct label *label;
if (mac_policy_count == 0)
return;
label = mac_mbuf_to_label(m);
MAC_POLICY_PERFORM_NOSLEEP(ip6q_update, m, label, q6,
q6->ip6q_label);
}
开发者ID:FelixHaller,项目名称:libuinet,代码行数:13,代码来源:mac_inet6.c
示例15: mac_socket_create_mbuf
void
mac_socket_create_mbuf(struct socket *so, struct mbuf *m)
{
struct label *label;
if (mac_policy_count == 0)
return;
label = mac_mbuf_to_label(m);
MAC_POLICY_PERFORM_NOSLEEP(socket_create_mbuf, so, so->so_label, m,
label);
}
开发者ID:2asoft,项目名称:freebsd,代码行数:13,代码来源:mac_socket.c
示例16: mac_ip6q_label_alloc
static struct label *
mac_ip6q_label_alloc(int flag)
{
struct label *label;
int error;
label = mac_labelzone_alloc(flag);
if (label == NULL)
return (NULL);
if (flag & M_WAITOK)
MAC_POLICY_CHECK(ip6q_init_label, label, flag);
else
MAC_POLICY_CHECK_NOSLEEP(ip6q_init_label, label, flag);
if (error) {
MAC_POLICY_PERFORM_NOSLEEP(ip6q_destroy_label, label);
mac_labelzone_free(label);
return (NULL);
}
return (label);
}
开发者ID:FelixHaller,项目名称:libuinet,代码行数:21,代码来源:mac_inet6.c
示例17: mac_sysvmsq_cleanup
void
mac_sysvmsq_cleanup(struct msqid_kernel *msqkptr)
{
MAC_POLICY_PERFORM_NOSLEEP(sysvmsq_cleanup, msqkptr->label);
}
开发者ID:dcui,项目名称:FreeBSD-9.3_kernel,代码行数:6,代码来源:mac_sysv_msg.c
示例18: mac_sysvmsg_cleanup
void
mac_sysvmsg_cleanup(struct msg *msgptr)
{
MAC_POLICY_PERFORM_NOSLEEP(sysvmsg_cleanup, msgptr->label);
}
开发者ID:dcui,项目名称:FreeBSD-9.3_kernel,代码行数:6,代码来源:mac_sysv_msg.c
注:本文中的MAC_POLICY_PERFORM_NOSLEEP函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论