membarrier.2 (1fc766e3b41d0cdbd166ef95258434069a90ca52) | membarrier.2 (92cd5abb64dd70c305535c9504c6a2b73552147f) |
---|---|
1.\" SPDX-License-Identifier: BSD-2-Clause 2.\" 3.\" Copyright (c) 2024 The FreeBSD Foundation 4.\" 5.\" This documentation was written by Ed Maste <emaste@FreeBSD.org> 6.\" under sponsorship from the FreeBSD Foundation. 7.\" 8.\" Redistribution and use in source and binary forms, with or without --- 46 unchanged lines hidden (view full) --- 55.It Dv MEMBARRIER_CMD_GLOBAL 56Issue a memory barrier for all threads from all processes. 57.It Dv MEMBARRIER_CMD_SHARED 58This is an alias for 59.Dv MEMBARRIER_CMD_GLOBAL . 60.It Dv MEMBARRIER_CMD_GLOBAL_EXPEDITED 61Execute a memory barrier on all running threads of all processes registered 62with | 1.\" SPDX-License-Identifier: BSD-2-Clause 2.\" 3.\" Copyright (c) 2024 The FreeBSD Foundation 4.\" 5.\" This documentation was written by Ed Maste <emaste@FreeBSD.org> 6.\" under sponsorship from the FreeBSD Foundation. 7.\" 8.\" Redistribution and use in source and binary forms, with or without --- 46 unchanged lines hidden (view full) --- 55.It Dv MEMBARRIER_CMD_GLOBAL 56Issue a memory barrier for all threads from all processes. 57.It Dv MEMBARRIER_CMD_SHARED 58This is an alias for 59.Dv MEMBARRIER_CMD_GLOBAL . 60.It Dv MEMBARRIER_CMD_GLOBAL_EXPEDITED 61Execute a memory barrier on all running threads of all processes registered 62with |
63.Dv MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED | 63.Dv MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED . |
64.It Dv MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED 65Register the process to receive 66.Dv MEMBARRIER_CMD_GLOBAL_EXPEDITED 67memory barriers. 68.It Dv MEMBARRIER_CMD_PRIVATE_EXPEDITED 69Execute a memory barrier on each running thread belonging to the same process 70as the thread calling 71.Nm . --- 25 unchanged lines hidden (view full) --- 97The 98.Fa flags 99argument must be 0. 100The 101.Fa cpu_id 102argument is ignored. 103.Sh RETURN VALUES 104If the | 64.It Dv MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED 65Register the process to receive 66.Dv MEMBARRIER_CMD_GLOBAL_EXPEDITED 67memory barriers. 68.It Dv MEMBARRIER_CMD_PRIVATE_EXPEDITED 69Execute a memory barrier on each running thread belonging to the same process 70as the thread calling 71.Nm . --- 25 unchanged lines hidden (view full) --- 97The 98.Fa flags 99argument must be 0. 100The 101.Fa cpu_id 102argument is ignored. 103.Sh RETURN VALUES 104If the |
105.Dv cmd 106is MEMBARRIER_CMD_QUERY | 105.Fa cmd 106is 107.Dv MEMBARRIER_CMD_QUERY |
107a bitmask of supported commands is returned. 108Otherwise, on success, 109.Nm 110returns 0. 111On error, -1 is returned and 112.Va errno 113is set to indicate the error. 114.Sh ERRORS --- 36 unchanged lines hidden --- | 108a bitmask of supported commands is returned. 109Otherwise, on success, 110.Nm 111returns 0. 112On error, -1 is returned and 113.Va errno 114is set to indicate the error. 115.Sh ERRORS --- 36 unchanged lines hidden --- |