MCPcopy Index your code

hub / github.com/beanstalkd/beanstalkd / functions

Functions349 in github.com/beanstalkd/beanstalkd

↓ 415 callersFunctionmustsend
testserv.c:347
↓ 259 callersFunctionckresp
testserv.c:319
↓ 202 callersFunctionckrespsub
testserv.c:326
↓ 70 callersFunctionmustdiallocal
testserv.c:76
↓ 30 callersFunctionjob_free
job.c:157
↓ 20 callersFunctionheapremove
heap.c:99
↓ 19 callersFunctionnanoseconds
time.c:6
↓ 17 callersFunctionoptparse
util.c:154
↓ 16 callersFunctiondie
ct/ct.c:126
↓ 15 callersFunctionctdir
ct/ct.c:84
↓ 15 callersFunctionheapinsert
Heapinsert inserts x into heap h according to h->less. It returns 1 on success, otherwise 0.
heap.c:73
↓ 14 callersFunctionwarnx
util.c:41
↓ 13 callersFunctionwarnpos
file.c:441
↓ 12 callersFunctionbench_put_delete_size
testserv.c:1990
↓ 12 callersFunctionjob_find
job.c:81
↓ 11 callersFunctionmake_tube
tube.c:8
↓ 11 callersFunctionms_append
ms.c:34
↓ 11 callersFunctionreply_line
reply_line prints *fmt into c->reply_buffer and calls reply() for the string and state.
prot.c:365
↓ 10 callersFunctionms_init
ms.c:6
↓ 9 callersFunctionbury_job
prot.c:543
↓ 9 callersFunctionenqueue_job
enqueue_job inserts job j in the tube, returns 1 on success, otherwise 0. If update_store then it writes an entry to WAL. On success it processes the
prot.c:506
↓ 8 callersFunctionepollq_apply
Propagate changes to event notification mechanism about expected operations in connections' sockets. Clear the epollq list.
prot.c:319
↓ 8 callersFunctionfilermjob
file.c:109
↓ 8 callersFunctionfmtalloc
util.c:51
↓ 8 callersFunctionjob_list_remove
job.c:245
↓ 8 callersFunctionmin
ct/ct.c:399
↓ 8 callersFunctionread_u64
Read an integer from the given buffer and place it in num. * Parsed integer should fit into uint64. * Update end to point to the address after the l
prot.c:1011
↓ 7 callersFunctionflagusage
util.c:131
↓ 7 callersFunctionget_all_jobs_used
for unit tests */
job.c:271
↓ 7 callersFunctionreadfull
file.c:421
↓ 6 callersFunctioncheck_err
prot.c:745
↓ 6 callersFunctionctstoptimer
ct/ct.c:109
↓ 6 callersFunctionfilewrite
file.c:501
↓ 6 callersFunctionjob_list_reset
job_list_reset detaches head from the list, marking the list starting in head pointing to itself.
job.c:232
↓ 6 callersFunctionms_remove
ms.c:70
↓ 6 callersFunctionread_u32
Indentical to read_u64() but instead reads into uint32.
prot.c:1038
↓ 6 callersFunctionreply_job
reply_job tells the connection c which job to send, and replies with this line: <msg> <job_id> <job_size>.
prot.c:386
↓ 6 callersFunctionsockwant
sunos.c:25
↓ 5 callersFunctionctresettimer
ct/ct.c:91
↓ 5 callersFunctionis_valid_tube
prot.c:1277
↓ 5 callersFunctionjob_copy
job.c:194
↓ 5 callersFunctionjob_list_is_empty
job.c:239
↓ 5 callersFunctionjob_pri_less
job.c:174
↓ 5 callersFunctionmake_job_with_id
job.c:112
↓ 5 callersFunctionms_clear
ms.c:62
↓ 5 callersFunctionms_take
ms.c:94
↓ 5 callersFunctionremove_waiting_conn
remove_waiting_conn unsets CONN_TYPE_WAITING for the connection, removes it from the waiting_conns set of every tube it's watching. Noop if connection
prot.c:398
↓ 5 callersFunctiontube_find_or_make
tube.c:97
↓ 5 callersFunctionusage
util.c:101
↓ 5 callersFunctionwalresvupdate
Returns the number of bytes reserved or 0 on error.
walg.c:386
↓ 4 callersFunctionallocate_job
job.c:93
↓ 4 callersFunctionfiledecref
file.c:82
↓ 4 callersFunctionfileincref
file.c:74
↓ 4 callersFunctionfill_extra_data
Copy up to body_size trailing bytes into the job, then the rest into the cmd * buffer. If c->in_job exists, this assumes that c->in_job->body is empt
prot.c:813
↓ 4 callersFunctionjob_list_insert
job.c:259
↓ 4 callersFunctionkill_srvpid
Kill the srvpid (child process) with SIGTERM to give it a chance to write gcov data to the filesystem before ct kills it with SIGKILL. Do nothing in c
testserv.c:167
↓ 4 callersFunctionread_duration
Read a delay value in seconds from the given buffer and place it in duration in nanoseconds. The interface and behavior are analogous to read_u3
prot.c:1067
↓ 4 callersFunctionset
heap.c:7
↓ 4 callersFunctiontube_find
tube.c:84
↓ 4 callersFunctionwalwrite
Walwrite writes j to the log w (if w is enabled). On failure, walwrite disables w and returns 0; on success, it returns 1. Unlke walresv*, walwrite sh
walg.c:178
↓ 3 callersFunction_get_job_hash_index
job.c:19
↓ 3 callersFunctionburied_job_p
prot.c:648
↓ 3 callersFunctionconnclose
conn.c:236
↓ 3 callersFunctionconnsoonestjob
Return the reserved job with the earliest deadline, or NULL if there's no reserved job.
conn.c:169
↓ 3 callersFunctiondo_stats
prot.c:1113
↓ 3 callersFunctionepollq_add
epollq_add schedules connection c in the s->conns heap, adds c to the epollq list to change expected operation in event notifications. rw='w' means to
prot.c:288
↓ 3 callersFunctionexist
testserv.c:34
↓ 3 callersFunctionfailed
ct/ct.c:153
↓ 3 callersFunctionfileaddjob
file.c:93
↓ 3 callersFunctionless
heap.c:26
↓ 3 callersFunctionmake_server_socket
net.c:214
↓ 3 callersFunctionmoveresv
walg.c:240
↓ 3 callersFunctionms_contains
ms.c:82
↓ 3 callersFunctionms_delete
ms.c:46
↓ 3 callersFunctionneedfree
walg.c:250
↓ 3 callersFunctionnstime
ct/ct.c:37
↓ 3 callersFunctionparse_size_t
util.c:139
↓ 3 callersFunctionprocess_queue
process_queue performs reservation for every jobs that is awaited for.
prot.c:457
↓ 3 callersFunctionprot_init
prot.c:2265
↓ 3 callersFunctionremove_buried_job
remove_buried_job returns non-NULL value if job j was in the buried state. It excludes the job from the buried list and updates counters.
prot.c:687
↓ 3 callersFunctionremove_ready_job
remove_ready_job returns non-NULL value if job j was in the ready state. It removes the job from the tube ready heap and updates counters.
prot.c:714
↓ 3 callersFunctionremove_reserved_job
prot.c:1269
↓ 3 callersFunctionreply
prot.c:342
↓ 3 callersFunctionreserve
Returns the number of bytes successfully reserved: either 0 or n.
walg.c:329
↓ 3 callersFunctionscan_line_end
Scan the given string for the sequence "\r\n" and return the line length. * Always returns at least 2 if a match is found. Returns 0 if no match. */
prot.c:761
↓ 3 callersFunctionsrv_acquire_wal
srv_acquire_wal tries to lock the wal dir specified by s->wal and replay entries from it to initialize the s state with jobs. On errors it exits from
serv.c:18
↓ 3 callersFunctionsrvserve
serv.c:39
↓ 3 callersFunctiontmpfd
ct/ct.c:142
↓ 3 callersFunctionwalmaint
walg.c:200
↓ 2 callersFunctionconn_reserve_job
conn.c:183
↓ 2 callersFunctionconn_set_soonestjob
conn_set_soonestjob updates c->soonest_job with j if j should be handled sooner than c->soonest_job.
conn.c:160
↓ 2 callersFunctionconn_want_command
prot.c:1909
↓ 2 callersFunctionconndeadlinesoon
Return true if c has a reserved job with less than one second until its deadline.
conn.c:198
↓ 2 callersFunctionconnsched
Remove c from the c->srv heap and reschedule it using the value returned by conntickat if there is an outstanding timeout in the c.
conn.c:144
↓ 2 callersFunctionconnsetworker
conn.c:76
↓ 2 callersFunctioncopyfd
ct/ct.c:241
↓ 2 callersFunctiondo_list_tubes
prot.c:1143
↓ 2 callersFunctionfileadd
Adds f to the linked list in w, updating w->tail and w->head as necessary.
file.c:584
↓ 2 callersFunctionfileinit
file.c:572
↓ 2 callersFunctionfilesize
testserv.c:355
next →1–100 of 349, ranked by callers