lib/libvarnishapi/vsl_dispatch.c
static enum vsl_status
vslq_shmref_check(struct VSLQ *vslq)
{
	struct chunk *chunk;
	enum vsl_check i;

	while ((chunk = VTAILQ_FIRST(&vslq->shmrefs)) != NULL) {
		CHECK_OBJ_NOTNULL(chunk, CHUNK_MAGIC);
		assert(chunk->type == chunk_t_shm);
		i = VSL_Check(vslq->c, &chunk->shm.start);
		switch (i) {
		case vsl_check_valid:
			/* First on list is OK, refs behind it must also
			   be OK */
			return (vsl_more);
		case vsl_check_warn:
			/* Buffer this chunk */
			chunk_shm_to_buf(vslq, chunk);
			break;
		default:
			/* Too late to buffer */
			return (vsl_e_overrun);
		}
	}

	return (vsl_more);
}
/* Check the beginning of the shmref list, and buffer refs that are at
 * warning level.
 */
Check the beginning of the shmref list, and buffer refs that are at
warning level.
Check the beginning of the shmref list and buffer refs that are at warning level .
static enum vsl_status
vslq_shmref_check(struct VSLQ *vslq)
{
	struct chunk *chunk;
	enum vsl_check i;
	while ((chunk = VTAILQ_FIRST(&vslq->shmrefs)) != NULL) {
		CHECK_OBJ_NOTNULL(chunk, CHUNK_MAGIC);
		assert(chunk->type == chunk_t_shm);
		i = VSL_Check(vslq->c, &chunk->shm.start);
		switch (i) {
		case vsl_check_valid:
			return (vsl_more);
		case vsl_check_warn:
			chunk_shm_to_buf(vslq, chunk);
			break;
		default:
			return (vsl_e_overrun);
		}
	}
	return (vsl_more);
}
static enum vsl_status vslq_shmref_check ( struct VSLQ * vslq ) { struct chunk * chunk ; enum vsl_check i ; while ( ( chunk = VTAILQ_FIRST ( & vslq -> shmrefs ) ) != NULL ) { CHECK_OBJ_NOTNULL ( chunk , CHUNK_MAGIC ) ; assert ( chunk -> type == chunk_t_shm ) ; i = VSL_Check ( vslq -> c , & chunk -> shm . start ) ; switch ( i ) { case vsl_check_valid : return ( vsl_more ) ; case vsl_check_warn : chunk_shm_to_buf ( vslq , chunk ) ; break ; default : return ( vsl_e_overrun ) ; } } return ( vsl_more ) ; }
Check the beginning of the shmref list, and buffer refs that are at
 warning level.
Check the beginning of the shmref list and buffer refs that are at warning level .
/* First on list is OK, refs behind it must also
			   be OK */ /* Buffer this chunk */ /* Too late to buffer */