nxt_port_memory_int.h (2126:8542c8141a13) nxt_port_memory_int.h (2139:99d792169ffb)
1
2/*
3 * Copyright (C) Max Romanov
4 * Copyright (C) NGINX, Inc.
5 */
6
7#ifndef _NXT_PORT_MEMORY_INT_H_INCLUDED_
8#define _NXT_PORT_MEMORY_INT_H_INCLUDED_

--- 86 unchanged lines hidden (view full) ---

95
96nxt_inline nxt_bool_t
97nxt_port_mmap_chk_set_chunk_busy(nxt_free_map_t *m, nxt_chunk_id_t c);
98
99nxt_inline void
100nxt_port_mmap_set_chunk_free(nxt_free_map_t *m, nxt_chunk_id_t c);
101
102nxt_inline nxt_chunk_id_t
1
2/*
3 * Copyright (C) Max Romanov
4 * Copyright (C) NGINX, Inc.
5 */
6
7#ifndef _NXT_PORT_MEMORY_INT_H_INCLUDED_
8#define _NXT_PORT_MEMORY_INT_H_INCLUDED_

--- 86 unchanged lines hidden (view full) ---

95
96nxt_inline nxt_bool_t
97nxt_port_mmap_chk_set_chunk_busy(nxt_free_map_t *m, nxt_chunk_id_t c);
98
99nxt_inline void
100nxt_port_mmap_set_chunk_free(nxt_free_map_t *m, nxt_chunk_id_t c);
101
102nxt_inline nxt_chunk_id_t
103nxt_port_mmap_chunk_id(nxt_port_mmap_header_t *hdr, u_char *p)
103nxt_port_mmap_chunk_id(nxt_port_mmap_header_t *hdr, const u_char *p)
104{
105 u_char *mm_start;
106
107 mm_start = (u_char *) hdr;
108
109 return ((p - mm_start) - PORT_MMAP_HEADER_SIZE) / PORT_MMAP_CHUNK_SIZE;
110}
111

--- 85 unchanged lines hidden ---
104{
105 u_char *mm_start;
106
107 mm_start = (u_char *) hdr;
108
109 return ((p - mm_start) - PORT_MMAP_HEADER_SIZE) / PORT_MMAP_CHUNK_SIZE;
110}
111

--- 85 unchanged lines hidden ---