[dpdk-dev] [PATCH v7 5/9] eal: add function to detect process type

Dmitry Kozlyuk dmitry.kozliuk at gmail.com
Wed Feb 5 21:04:22 CET 2020


> +/* Detect if we are a primary or a secondary process */
> +enum rte_proc_type_t
> +eal_proc_type_detect(void)
> +{
[...]
> +		OVERLAPPED sOverlapped = { 0 };
> +		sOverlapped.Offset = sizeof(*rte_config.mem_config);
> +		sOverlapped.OffsetHigh = 0;
> +
> +		HANDLE hWinFileHandle = (HANDLE)_get_osfhandle(mem_cfg_fd);
[...]

Identifiers don't follow naming conventions.

-- 
Dmitry Kozlyuk


More information about the dev mailing list