LCOV - code coverage report
Current view: top level - drivers/net/ixgbe/base - ixgbe_osdep.c (source / functions) Hit Total Coverage
Test: Code coverage Lines: 0 19 0.0 %
Date: 2024-12-01 18:57:19 Functions: 0 7 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* SPDX-License-Identifier: BSD-3-Clause
       2                 :            :  * Copyright(c) 2024 Intel Corporation
       3                 :            :  */
       4                 :            : 
       5                 :            : #include <stdlib.h>
       6                 :            : 
       7                 :            : #include <rte_common.h>
       8                 :            : 
       9                 :            : #include "ixgbe_osdep.h"
      10                 :            : 
      11                 :            : void *
      12                 :          0 : ixgbe_calloc(struct ixgbe_hw __rte_unused *hw, size_t count, size_t size)
      13                 :            : {
      14                 :          0 :         return malloc(count * size);
      15                 :            : }
      16                 :            : 
      17                 :            : void *
      18                 :          0 : ixgbe_malloc(struct ixgbe_hw __rte_unused *hw, size_t size)
      19                 :            : {
      20                 :          0 :         return malloc(size);
      21                 :            : }
      22                 :            : 
      23                 :            : void
      24                 :          0 : ixgbe_free(struct ixgbe_hw __rte_unused *hw, void *addr)
      25                 :            : {
      26                 :          0 :         free(addr);
      27                 :          0 : }
      28                 :            : 
      29                 :          0 : void ixgbe_init_lock(struct ixgbe_lock *lock)
      30                 :            : {
      31                 :          0 :         pthread_mutex_init(&lock->mutex, NULL);
      32                 :          0 : }
      33                 :            : 
      34                 :          0 : void ixgbe_destroy_lock(struct ixgbe_lock *lock)
      35                 :            : {
      36                 :          0 :         pthread_mutex_destroy(&lock->mutex);
      37                 :          0 : }
      38                 :            : 
      39                 :          0 : void ixgbe_acquire_lock(struct ixgbe_lock *lock)
      40                 :            : {
      41                 :          0 :         pthread_mutex_lock(&lock->mutex);
      42                 :          0 : }
      43                 :            : 
      44                 :          0 : void ixgbe_release_lock(struct ixgbe_lock *lock)
      45                 :            : {
      46                 :          0 :         pthread_mutex_unlock(&lock->mutex);
      47                 :          0 : }

Generated by: LCOV version 1.14