Boaz Harrosh wrote:
Introduce a new header that includes definitions of all OS specific services. stgt code will use abstract API from os.h. (start with os_xxx). Then a linux/os.c and bsd/os.c implement these services for the needed platform.
First such service is sync_file_range which needs to be emulated in bsd.
usr/linux/os.c | 45 +++++++++++++++++++++++++++++++++++++++++++++
Hi Boaz,
I think best if we can avoid having a --linux-- os.c file. If not, at
least avoid adding one-hop for fast-path calls such as sync_file_range
(e.g in this case under linux let it be inline as it used to be). Also,
I wasn't sure where the patch to bs_aio.c from the previous post (11/14)
landed in this sequence.
Or.
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html