unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
33,561
0
static int shmem_unuse_inode(struct shmem_inode_info *info, swp_entry_t swap, struct page **pagep) { struct address_space *mapping = info->vfs_inode.i_mapping; void *radswap; pgoff_t index; gfp_t gfp; int error = 0; radswap = swp_to_radix_entry(swap); index = radix_tree_locate_item(&mapping->page_tree, ...
15,300
82,668
0
int sr_tray_move(struct cdrom_device_info *cdi, int pos) { Scsi_CD *cd = cdi->handle; struct packet_command cgc; memset(&cgc, 0, sizeof(struct packet_command)); cgc.cmd[0] = GPCMD_START_STOP_UNIT; cgc.cmd[4] = (pos == 0) ? 0x03 /* close */ : 0x02 /* eject */ ; cgc.data_direction = DMA_NONE; cgc.timeout = IOCTL_...
15,301
5,635
0
ask (char const *format, ...) { static int ttyfd = -2; ssize_t r; va_list args; va_start (args, format); vfprintf (stdout, format, args); va_end (args); fflush (stdout); if (ttyfd == -2) { /* If standard output is not a tty, don't bother opening /dev/tty, since it's unlikely that stdout wi...
15,302
10,065
0
event_render_mode_change( int delta ) { if ( delta ) { status.render_mode = ( status.render_mode + delta ) % N_RENDER_MODES; if ( status.render_mode < 0 ) status.render_mode += N_RENDER_MODES; } switch ( status.render_mode ) { case RENDER_MODE_ALL: status.header...
15,303
85,152
0
static inline bool __force_buffered_io(struct inode *inode, int rw) { return ((f2fs_encrypted_inode(inode) && S_ISREG(inode->i_mode)) || (rw == WRITE && test_opt(F2FS_I_SB(inode), LFS)) || F2FS_I_SB(inode)->s_ndevs); }
15,304
148,196
0
void V8TestObject::VoidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodXPathNSResolverArg"); test_object_v8_internal::VoidMethodXPathNSResolverArgMethod(info); }
15,305
7,773
0
static int h2_rcv_buf(struct conn_stream *cs, struct buffer *buf, int count) { struct h2s *h2s = cs->ctx; struct h2c *h2c = h2s->h2c; int ret = 0; if (h2c->st0 != H2_CS_FRAME_P) return 0; // no pre-parsed frame yet if (h2c->dsi != h2s->id) return 0; // not for us if (!h2c->dbuf->size) return 0; // empty ...
15,306
113,957
0
FakeInvalidationClient() {}
15,307
118,481
0
blink::WebPlugin* RenderFrameImpl::createPlugin( blink::WebLocalFrame* frame, const blink::WebPluginParams& params) { DCHECK_EQ(frame_, frame); blink::WebPlugin* plugin = NULL; if (GetContentClient()->renderer()->OverrideCreatePlugin( this, frame, params, &plugin)) { return plugin; } if...
15,308
82,224
0
SYSCALL_DEFINE4(accept4, int, fd, struct sockaddr __user *, upeer_sockaddr, int __user *, upeer_addrlen, int, flags) { return __sys_accept4(fd, upeer_sockaddr, upeer_addrlen, flags); }
15,309
15,863
0
static void virtio_net_tx_complete(NetClientState *nc, ssize_t len) { VirtIONet *n = qemu_get_nic_opaque(nc); VirtIONetQueue *q = virtio_net_get_subqueue(nc); VirtIODevice *vdev = VIRTIO_DEVICE(n); virtqueue_push(q->tx_vq, &q->async_tx.elem, 0); virtio_notify(vdev, q->tx_vq); q->async_tx.elem....
15,310
34,025
0
static netdev_features_t xenvif_fix_features(struct net_device *dev, netdev_features_t features) { struct xenvif *vif = netdev_priv(dev); if (!vif->can_sg) features &= ~NETIF_F_SG; if (!vif->gso && !vif->gso_prefix) features &= ~NETIF_F_TSO; if (!vif->csum) features &= ~NETIF_F_IP_CSUM; return features; }...
15,311
92,071
0
blk_qc_t submit_bio(struct bio *bio) { /* * If it's a regular read/write or a barrier with data attached, * go through the normal accounting stuff before submission. */ if (bio_has_data(bio)) { unsigned int count; if (unlikely(bio_op(bio) == REQ_OP_WRITE_SAME)) count = queue_logical_block_size(bio->bi_d...
15,312
72,009
0
static void LogPrimitiveInfo(const PrimitiveInfo *primitive_info) { const char *methods[] = { "point", "replace", "floodfill", "filltoborder", "reset", "?" }; PointInfo p, q, point; register ssize_t i, x; ssize_t coordinates, y; x...
15,313
67,466
0
int vfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *new_dentry, struct inode **delegated_inode) { struct inode *inode = old_dentry->d_inode; unsigned max_links = dir->i_sb->s_max_links; int error; if (!inode) return -ENOENT; error = may_create(dir, new_dentry); if (error) return error;...
15,314
61,477
0
static int mov_read_udta_string(MOVContext *c, AVIOContext *pb, MOVAtom atom) { char tmp_key[5]; char key2[32], language[4] = {0}; char *str = NULL; const char *key = NULL; uint16_t langcode = 0; uint32_t data_type = 0, str_size, str_size_alloc; int (*parse)(MOVContext*, AVIOContext*, unsign...
15,315
10,185
0
Ins_SVTCA( INS_ARG ) { DO_SVTCA }
15,316
51,880
0
dissect_rach_channel_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, struct fp_info *p_fp_info, void *data) { gboolean is_control_frame; guint16 header_crc = 0; proto_item * header_crc_pi = NULL; guint header_length = 0; /* Header CRC */ header_cr...
15,317
183,386
1
static void prefetch_enc(void) { prefetch_table((const void *)encT, sizeof(encT)); }
15,318
137,212
0
SkColor Textfield::GetSelectionTextColor() const { return use_default_selection_text_color_ ? GetNativeTheme()->GetSystemColor( ui::NativeTheme::kColorId_TextfieldSelectionColor) : selection_text_color_; }
15,319
121,699
0
MediaStreamDevicesController::GetDevicePolicy( const char* policy_name, const char* whitelist_policy_name) const { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); PrefService* prefs = profile_->GetPrefs(); if (IsInKioskMode()) { const base::ListValue* list = prefs->GetList(whitelist_policy_n...
15,320
23,906
0
static inline pvc_device* find_pvc(hdlc_device *hdlc, u16 dlci) { pvc_device *pvc = state(hdlc)->first_pvc; while (pvc) { if (pvc->dlci == dlci) return pvc; if (pvc->dlci > dlci) return NULL; /* the list is sorted */ pvc = pvc->next; } return NULL; }
15,321
64,373
0
static int dnxhd_get_hr_frame_size(int cid, int w, int h) { int result, i = ff_dnxhd_get_cid_table(cid); if (i < 0) return i; result = ((h + 15) / 16) * ((w + 15) / 16) * ff_dnxhd_cid_table[i].packet_scale.num / ff_dnxhd_cid_table[i].packet_scale.den; result = (result + 2048) / 4096 * 4096; ...
15,322
6,577
0
bool Smb4KGlobal::removeWorkgroup( Smb4KWorkgroup *workgroup ) { Q_ASSERT( workgroup ); bool removed = false; mutex.lock(); int index = p->workgroupsList.indexOf( workgroup ); if ( index != -1 ) { delete p->workgroupsList.takeAt( index ); removed = true; } else { Smb4KWorkgroup *wg = f...
15,323
175,628
0
void m4vdec_dprintf(char *format, ...) { FILE *log_fp; va_list args; va_start(args, format); /* open the log file */ log_fp = fopen("\\mp4dec_log.txt", "a+"); if (log_fp == NULL) return; /* output the message */ vfprintf(log_fp, format, args); fclose(log_fp); va_end(args); }
15,324
141,550
0
void TracingControllerImpl::DisconnectFromService() { coordinator_ = nullptr; }
15,325
19,538
0
static int udf_parse_options(char *options, struct udf_options *uopt, bool remount) { char *p; int option; uopt->novrs = 0; uopt->partition = 0xFFFF; uopt->session = 0xFFFFFFFF; uopt->lastblock = 0; uopt->anchor = 0; uopt->volume = 0xFFFFFFFF; uopt->rootdir = 0xFFFFFFFF; uopt->fileset = 0xFFFFFFFF; ...
15,326
95,740
0
void CL_UpdateServerInfo( int n ) { if ( !cl_pinglist[n].adr.port ) { return; } CL_SetServerInfoByAddress( cl_pinglist[n].adr, cl_pinglist[n].info, cl_pinglist[n].time ); }
15,327
5,604
0
_gcry_ecc_eddsa_ensure_compact (gcry_mpi_t value, unsigned int nbits) { gpg_err_code_t rc; const unsigned char *buf; unsigned int rawmpilen; gcry_mpi_t x, y; unsigned char *enc; unsigned int enclen; if (!mpi_is_opaque (value)) return GPG_ERR_INV_OBJ; buf = mpi_get_opaque (value, &rawmpilen); if (...
15,328
113,387
0
void WebProcessProxy::didReceiveInvalidMessage(CoreIPC::Connection* connection, CoreIPC::StringReference messageReceiverName, CoreIPC::StringReference messageName) { WTFLogAlways("Received an invalid message \"%s.%s\" from the web process.\n", messageReceiverName.toString().data(), messageName.toString().data()); ...
15,329
118,880
0
const std::string& WebContentsImpl::GetContentsMimeType() const { return contents_mime_type_; }
15,330
35,986
0
SMB2_set_compression(const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_fid, u64 volatile_fid) { int rc; struct compress_ioctl fsctl_input; char *ret_data = NULL; fsctl_input.CompressionState = __constant_cpu_to_le16(COMPRESSION_FORMAT_DEFAULT); rc = SMB2_ioctl(xid, tcon, persistent_fid, v...
15,331
143,587
0
void OomInterventionImpl::ReportMemoryStats( OomInterventionMetrics& current_memory) { UMA_HISTOGRAM_MEMORY_MB( "Memory.Experimental.OomIntervention.RendererBlinkUsage", current_memory.current_blink_usage_kb / 1024); UMA_HISTOGRAM_MEMORY_LARGE_MB( "Memory.Experimental.OomIntervention." "...
15,332
76,660
0
static void t1_puts(const char *s) { if (s != t1_line_array) strcpy(t1_line_array, s); t1_line_ptr = strend(t1_line_array); t1_putline(); }
15,333
4,721
0
user_change_location_authorized_cb (Daemon *daemon, User *user, GDBusMethodInvocation *context, gpointer data) { gchar *location = data; if (g_strcm...
15,334
56,453
0
void show_stack(struct task_struct *tsk, unsigned long *stack) { unsigned long sp, ip, lr, newsp; int count = 0; int firstframe = 1; #ifdef CONFIG_FUNCTION_GRAPH_TRACER int curr_frame = current->curr_ret_stack; extern void return_to_handler(void); unsigned long rth = (unsigned long)return_to_handler; #endif sp ...
15,335
15,122
0
PHP_FUNCTION(imagegif) { _php_image_output_ctx(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_GIF, "GIF", gdImageGifCtx); }
15,336
131,012
0
static void reflectedTreatNullAsNullStringCustomURLAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) { TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); TestObjectV8Internal::reflectedTreatNullAsNullStringCustomURLAttrAttributeGetter(info); TRACE_EVENT_S...
15,337
81,593
0
static void parse_error(struct filter_parse_error *pe, int err, int pos) { pe->lasterr = err; pe->lasterr_pos = pos; }
15,338
163,067
0
void CloseFds(const std::vector<int>& fds) { for (const auto& it : fds) { PCHECK(0 == IGNORE_EINTR(close(it))); } }
15,339
182,458
1
static BOOL nsc_context_initialize_encode(NSC_CONTEXT* context) { int i; UINT32 length; UINT32 tempWidth; UINT32 tempHeight; tempWidth = ROUND_UP_TO(context->width, 8); tempHeight = ROUND_UP_TO(context->height, 2); /* The maximum length a decoded plane can reach in all cases */ length = tempWidth * tempHeight +...
15,340
81,831
0
int do_mp_jacobi(mp_int* a, mp_int* n, int* c) { int k, s, res; int r = 0; /* initialize to help static analysis out */ mp_digit residue; /* if a < 0 return MP_VAL */ if (mp_isneg(a) == MP_YES) { return MP_VAL; } /* if n <= 0 return MP_VAL */ if (mp_cmp_d(n, 0) != MP_GT) { return M...
15,341
169,257
0
void InjectRawKeyEvent(WebContents* web_contents, blink::WebInputEvent::Type type, ui::DomKey key, ui::DomCode code, ui::KeyboardCode key_code, int modifiers) { NativeWebKeyboardEvent event(type, modifie...
15,342
71,743
0
static void StripStyleTokens(char *message) { register char *p, *q; size_t length; assert(message != (char *) NULL); if (*message == '\0') return; length=strlen(message); p=message; while (isspace((int) ((unsigned char) *p)) != 0) p++; q=message+length-1; while ((isspace((int) ((...
15,343
62,327
0
handle_ppp(netdissect_options *ndo, u_int proto, const u_char *p, int length) { if ((proto & 0xff00) == 0x7e00) { /* is this an escape code ? */ ppp_hdlc(ndo, p - 1, length); return; } switch (proto) { case PPP_LCP: /* fall through */ case PPP_IPCP: case PPP_OSICP: case PPP_MPLSCP: case PPP_IPV6...
15,344
75,544
0
static int usb_dev_freeze(struct device *dev) { return usb_suspend(dev, PMSG_FREEZE); }
15,345
183,663
1
void CheckNodeValue(const BaseNode& node, const DictionaryValue& value, bool is_detailed) { ExpectInt64Value(node.GetId(), value, "id"); { bool is_folder = false; EXPECT_TRUE(value.GetBoolean("isFolder", &is_folder)); EXPECT_EQ(node.GetIsFolder(), is_folder); } ExpectDictStringValue(node.GetTitle(), value, "title"); { ...
15,346
35,241
0
int dev_change_name(struct net_device *dev, const char *newname) { char oldname[IFNAMSIZ]; int err = 0; int ret; struct net *net; ASSERT_RTNL(); BUG_ON(!dev_net(dev)); net = dev_net(dev); if (dev->flags & IFF_UP) return -EBUSY; if (strncmp(newname, dev->name, IFNAMSIZ) == 0) return 0; memcpy(oldname, ...
15,347
137,869
0
bool MediaControlVolumeSliderElement::keepEventInNode(Event* event) { return isUserInteractionEventForSlider(event, layoutObject()); }
15,348
99,265
0
GetRawCookiesCompletion(const GURL& url, IPC::Message* reply_msg, ResourceMessageFilter* filter, URLRequestContext* context) : url_(url), reply_msg_(reply_msg), filter_(filter), context_(context) { }
15,349
2,968
0
pdf14_push_text_group(gx_device *dev, gs_gstate *pgs, gx_path *path, const gx_clip_path *pcpath, gs_blend_mode_t blend_mode, float opacity, bool is_clist) { int code; gs_transparency_group_params_t params = { 0 }; gs_rect bbox = { 0 }; /* Bounding box is set by parent */ pdf14_clist_device * pde...
15,350
550
0
pdf_run_xobject(fz_context *ctx, pdf_run_processor *proc, pdf_xobject *xobj, pdf_obj *page_resources, const fz_matrix *transform, int is_smask) { pdf_run_processor *pr = (pdf_run_processor *)proc; pdf_gstate *gstate = NULL; int oldtop = 0; int oldbot = -1; fz_matrix local_transform = *transform; softmask_save sof...
15,351
52,333
0
compat_copy_entry_to_user(struct ip6t_entry *e, void __user **dstptr, unsigned int *size, struct xt_counters *counters, unsigned int i) { struct xt_entry_target *t; struct compat_ip6t_entry __user *ce; u_int16_t target_offset, next_offset; compat_uint_t origsize; const struct xt_entry_match *ematch; int...
15,352
180,071
1
static long ion_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) { struct ion_client *client = filp->private_data; struct ion_device *dev = client->dev; struct ion_handle *cleanup_handle = NULL; int ret = 0; unsigned int dir; union { struct ion_fd_data fd; struct ion_allocation_data allocation; struct ion...
15,353
32,151
0
static void dev_unicast_init(struct net_device *dev) { __hw_addr_init(&dev->uc); }
15,354
170,857
0
status_t GraphicBuffer::lockAsync(uint32_t usage, void** vaddr, int fenceFd) { const Rect lockBounds(width, height); status_t res = lockAsync(usage, lockBounds, vaddr, fenceFd); return res; }
15,355
109,844
0
void Document::styleResolverChanged(RecalcStyleTime updateTime, StyleResolverUpdateMode updateMode) { if (!confusingAndOftenMisusedAttached() || (!m_didCalculateStyleResolver && !haveStylesheetsLoaded())) { m_styleResolver.clear(); return; } m_didCalculateStyleResolver = true; bool need...
15,356
169,702
0
V8ValueConverter* V8ValueConverter::create() { return new V8ValueConverterImpl(); }
15,357
78,476
0
iasecc_chv_verify(struct sc_card *card, struct sc_pin_cmd_data *pin_cmd, int *tries_left) { struct sc_context *ctx = card->ctx; struct sc_acl_entry acl = pin_cmd->pin1.acls[IASECC_ACLS_CHV_VERIFY]; struct sc_apdu apdu; int rv; LOG_FUNC_CALLED(ctx); sc_log(ctx, "Verify CHV PIN(ref:%i,len:%i,acl:%X:%X)", pin_cmd...
15,358
22,938
0
static struct rpc_cred *nfs4_get_machine_cred_locked(struct nfs_client *clp) { struct rpc_cred *cred = NULL; if (clp->cl_machine_cred != NULL) cred = get_rpccred(clp->cl_machine_cred); return cred; }
15,359
142,977
0
uint64_t HTMLMediaElement::webkitVideoDecodedByteCount() const { if (!GetWebMediaPlayer()) return 0; return GetWebMediaPlayer()->VideoDecodedByteCount(); }
15,360
15,467
0
Tar::Tar(wxString& szFile) : DFile(szFile) { bCanCompress = false; }
15,361
184,097
1
ScreenLockLibrary* CrosLibrary::GetScreenLockLibrary() { return screen_lock_lib_.GetDefaultImpl(use_stub_impl_); }
15,362
93,206
0
warning(const char *fmt, ...) { va_list ap; (void)fprintf(stderr, "%s: WARNING: ", program_name); va_start(ap, fmt); (void)vfprintf(stderr, fmt, ap); va_end(ap); if (*fmt) { fmt += strlen(fmt); if (fmt[-1] != '\n') (void)fputc('\n', stderr); } }
15,363
56,333
0
static double filter_power(const double x) { const double a = 2.0f; if (fabs(x)>1) return 0.0f; return (1.0f - (double)fabs(pow(x,a))); }
15,364
122,148
0
void RenderLayerCompositor::frameViewDidChangeLocation(const IntPoint& contentsOffset) { if (m_overflowControlsHostLayer) m_overflowControlsHostLayer->setPosition(contentsOffset); }
15,365
793
0
poppler_page_get_thumbnail_pixbuf (PopplerPage *page) { unsigned char *data; int width, height, rowstride; g_return_val_if_fail (POPPLER_IS_PAGE (page), FALSE); if (!page->page->loadThumb (&data, &width, &height, &rowstride)) return NULL; return gdk_pixbuf_new_from_data (data, GDK_COLORSPACE_RGB, ...
15,366
42,494
0
void mddev_unlock(struct mddev *mddev) { if (mddev->to_remove) { /* These cannot be removed under reconfig_mutex as * an access to the files will try to take reconfig_mutex * while holding the file unremovable, which leads to * a deadlock. * So hold set sysfs_active while the remove in happeing, * and...
15,367
68,849
0
static void cache_init_objs(struct kmem_cache *cachep, struct page *page) { int i; void *objp; bool shuffled; cache_init_objs_debug(cachep, page); /* Try to randomize the freelist if enabled */ shuffled = shuffle_freelist(cachep, page); if (!shuffled && OBJFREELIST_SLAB(cachep)) { page->freelist = in...
15,368
138,954
0
void DeleteWallpaperInList(const std::vector<base::FilePath>& file_list) { for (std::vector<base::FilePath>::const_iterator it = file_list.begin(); it != file_list.end(); ++it) { base::FilePath path = *it; if (!base::DeleteFile(path, true) && !base::DeleteFile(path.AddExtension(".png"), false))...
15,369
148,383
0
WebContentsImpl* WebContentsImpl::GetCreatedWindow( int process_id, int main_frame_widget_route_id) { auto key = std::make_pair(process_id, main_frame_widget_route_id); auto iter = pending_contents_.find(key); if (iter == pending_contents_.end()) return nullptr; WebContentsImpl* new_contents = ite...
15,370
38,147
0
static int magicmouse_firm_touch(struct magicmouse_sc *msc) { int touch = -1; int ii; /* If there is only one "firm" touch, set touch to its * tracking ID. */ for (ii = 0; ii < msc->ntouches; ii++) { int idx = msc->tracking_ids[ii]; if (msc->touches[idx].size < 8) { /* Ignore this touch. */ } else if ...
15,371
21,229
0
void free_pgd_range(struct mmu_gather *tlb, unsigned long addr, unsigned long end, unsigned long floor, unsigned long ceiling) { pgd_t *pgd; unsigned long next; /* * The next few lines have given us lots of grief... * * Why are we testing PMD* at this top level? Because often * there will be no work ...
15,372
112,565
0
void Document::setReadyState(ReadyState readyState) { if (readyState == m_readyState) return; switch (readyState) { case Loading: if (!m_documentTiming.domLoading) m_documentTiming.domLoading = monotonicallyIncreasingTime(); break; case Interactive: if (!m_do...
15,373
47,938
0
static __always_inline int __linearize(struct x86_emulate_ctxt *ctxt, struct segmented_address addr, unsigned *max_size, unsigned size, bool write, bool fetch, enum x86emul_mode mode, ulong *linear) { struct desc_struct desc; bool usable; ulong la; u32 lim; u16 sel; la...
15,374
85,159
0
int do_write_data_page(struct f2fs_io_info *fio) { struct page *page = fio->page; struct inode *inode = page->mapping->host; struct dnode_of_data dn; int err = 0; set_new_dnode(&dn, inode, NULL, NULL, 0); err = get_dnode_of_data(&dn, page->index, LOOKUP_NODE); if (err) return err; fio->old_blkaddr = dn.data...
15,375
54,429
0
static int php_zip_has_property(zval *object, zval *member, int type, void **cache_slot) /* {{{ */ { ze_zip_object *obj; zval tmp_member; zip_prop_handler *hnd = NULL; zend_object_handlers *std_hnd; int retval = 0; if (Z_TYPE_P(member) != IS_STRING) { ZVAL_COPY(&tmp_member, member); convert_to_string(&tmp_me...
15,376
47,786
0
static inline unsigned int muldiv32(unsigned int a, unsigned int b, unsigned int c, unsigned int *r) { u_int64_t n = (u_int64_t) a * b; if (c == 0) { snd_BUG_ON(!n); *r = 0; return UINT_MAX; } n = div_u64_rem(n, c, r); if (n >= UINT_MAX) { *r = 0; return UINT_MAX; } return n; }
15,377
106,927
0
int RenderBox::scrollTop() const { return hasOverflowClip() ? layer()->scrollYOffset() : 0; }
15,378
94,585
0
static enum d_walk_ret check_mount(void *data, struct dentry *dentry) { int *ret = data; if (d_mountpoint(dentry)) { *ret = 1; return D_WALK_QUIT; } return D_WALK_CONTINUE; }
15,379
172,016
0
bt_status_t btsock_l2cap_connect(const bt_bdaddr_t *bd_addr, int channel, int* sock_fd, int flags) { return btsock_l2cap_listen_or_connect(NULL, bd_addr, channel, sock_fd, flags, 0); }
15,380
22,917
0
static int nfs4_write_done(struct rpc_task *task, struct nfs_write_data *data) { struct inode *inode = data->inode; if (nfs4_async_handle_error(task, NFS_SERVER(inode), data->args.context->state) == -EAGAIN) { rpc_restart_call(task); return -EAGAIN; } if (task->tk_status >= 0) { renew_lease(NFS_SERVER(inode...
15,381
40,252
0
static int data_sock_getsockopt(struct socket *sock, int level, int optname, char __user *optval, int __user *optlen) { struct sock *sk = sock->sk; int len, opt; if (get_user(len, optlen)) return -EFAULT; if (len != sizeof(char)) return -EINVAL; switch (optname) { case MISDN_TIME_STAMP: if (_pms(sk)-...
15,382
28,265
0
static inline int pic_is_unused(H264Context *h, Picture *pic) { if (pic->f.data[0] == NULL) return 1; if (pic->needs_realloc && !(pic->reference & DELAYED_PIC_REF)) return 1; return 0; }
15,383
8,915
0
void vrend_renderer_resource_destroy(struct vrend_resource *res, bool remove) { if (res->readback_fb_id) glDeleteFramebuffers(1, &res->readback_fb_id); if (res->ptr) free(res->ptr); if (res->id) { if (res->target == GL_ELEMENT_ARRAY_BUFFER_ARB || res->target == GL_ARRAY_BUFFER_ARB ...
15,384
166,721
0
void NormalPageArena::AllocatePage() { GetThreadState()->Heap().address_cache()->MarkDirty(); PageMemory* page_memory = GetThreadState()->Heap().GetFreePagePool()->Take(ArenaIndex()); if (!page_memory) { PageMemoryRegion* region = PageMemoryRegion::AllocateNormalPages( GetThreadState()->Heap()....
15,385
66,747
0
static int cxusb_power_ctrl(struct dvb_usb_device *d, int onoff) { u8 b = 0; if (onoff) return cxusb_ctrl_msg(d, CMD_POWER_ON, &b, 1, NULL, 0); else return cxusb_ctrl_msg(d, CMD_POWER_OFF, &b, 1, NULL, 0); }
15,386
164,894
0
DownloadResourceHandler::DownloadResourceHandler( net::URLRequest* request, const std::string& request_origin, download::DownloadSource download_source, bool follow_cross_origin_redirects) : ResourceHandler(request), tab_info_(new DownloadTabInfo()), follow_cross_origin_redirects_(follow...
15,387
138,724
0
void NotifyRenderFrameDetachedOnIO(int render_process_id, int render_frame_id) { DCHECK_CURRENTLY_ON(BrowserThread::IO); SharedWorkerServiceImpl::GetInstance()->RenderFrameDetached(render_process_id, render_frame_id); }
15,388
61,720
0
_zip_read_cdir(zip_t *za, zip_buffer_t *buffer, zip_uint64_t buf_offset, zip_error_t *error) { zip_cdir_t *cd; zip_uint16_t comment_len; zip_uint64_t i, left; zip_uint64_t eocd_offset = _zip_buffer_offset(buffer); zip_buffer_t *cd_buffer; if (_zip_buffer_left(buffer) < EOCDLEN) { /* not enough...
15,389
65,177
0
static int __init ipv6_offload_init(void) { if (tcpv6_offload_init() < 0) pr_crit("%s: Cannot add TCP protocol offload\n", __func__); if (ipv6_exthdrs_offload_init() < 0) pr_crit("%s: Cannot add EXTHDRS protocol offload\n", __func__); dev_add_offload(&ipv6_packet_offload); inet_add_offload(&sit_offload, IPPR...
15,390
164,199
0
static void SignalEvent(base::WaitableEvent* event) { event->Signal(); }
15,391
4,957
0
gst_qtdemux_push_pending_newsegment (GstQTDemux * qtdemux) { if (qtdemux->pending_newsegment) { gst_qtdemux_push_event (qtdemux, qtdemux->pending_newsegment); qtdemux->pending_newsegment = NULL; } }
15,392
124,736
0
LayoutUnit RenderBlockFlow::lowestFloatLogicalBottom(FloatingObject::Type floatType) const { if (!m_floatingObjects) return 0; return m_floatingObjects->lowestFloatLogicalBottom(floatType); }
15,393
26,908
0
static int sched_show(struct seq_file *m, void *v) { struct inode *inode = m->private; struct task_struct *p; p = get_proc_task(inode); if (!p) return -ESRCH; proc_sched_show_task(p, m); put_task_struct(p); return 0; }
15,394
183,616
1
void UpdateNetworkManagerStatus() { // Make sure we run on UI thread. if (!BrowserThread::CurrentlyOn(BrowserThread::UI)) { BrowserThread::PostTask( BrowserThread::UI, FROM_HERE, NewRunnableMethod(this, &NetworkLibraryImpl::UpdateNetworkManagerStatus)); return; } SystemInfo* system = GetSystemInfo(); if (!system) retu...
15,395
47,161
0
static void __exit camellia_fini(void) { crypto_unregister_alg(&camellia_alg); }
15,396
74,802
0
void ff_mpeg4_pred_ac(MpegEncContext *s, int16_t *block, int n, int dir) { int i; int16_t *ac_val, *ac_val1; int8_t *const qscale_table = s->current_picture.qscale_table; /* find prediction */ ac_val = &s->ac_val[0][0][0] + s->block_index[n] * 16; ac_val1 = ac_val; if (s->ac_pred) { ...
15,397
144,512
0
std::vector<RenderFrameHost*> WebContentsImpl::GetAllFrames() { std::vector<RenderFrameHost*> frame_hosts; for (FrameTreeNode* node : frame_tree_.Nodes()) frame_hosts.push_back(node->current_frame_host()); return frame_hosts; }
15,398
102,677
0
TextureManager* CCLayerTreeHost::contentsTextureManager() const { return m_contentsTextureManager.get(); }
15,399